mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
second attempt to fix #2416
This commit is contained in:
parent
afe6630425
commit
df68b0188c
1 changed files with 2 additions and 7 deletions
|
|
@ -40,16 +40,11 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() {
|
|||
lastval = $this.jqmData( "lastval" ) + "",
|
||||
childItems = false,
|
||||
itemtext = "",
|
||||
item, change,
|
||||
regex = "";
|
||||
|
||||
try {
|
||||
regex = new RegExp( "^" + lastval );
|
||||
} catch (e) {}
|
||||
item, change;
|
||||
|
||||
// Change val as lastval for next execution
|
||||
$this.jqmData( "lastval" , val );
|
||||
change = val.replace( regex , "" );
|
||||
change = val.substr( 0 , lastval.length + 1 ).replace( lastval , "" );
|
||||
|
||||
if ( val.length < lastval.length || change.length != ( val.length - lastval.length ) ) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue