Skip to content

Commit

Permalink
fixed typo (+ -> -) to fix jquery-archive#2416
Browse files Browse the repository at this point in the history
  • Loading branch information
hpbuniat committed Sep 20, 2011
1 parent df68b01 commit 2051c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.listview.filter.js
Expand Up @@ -44,7 +44,7 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() {


// Change val as lastval for next execution // Change val as lastval for next execution
$this.jqmData( "lastval" , val ); $this.jqmData( "lastval" , val );
change = val.substr( 0 , lastval.length + 1 ).replace( lastval , "" ); change = val.substr( 0 , lastval.length - 1 ).replace( lastval , "" );


if ( val.length < lastval.length || change.length != ( val.length - lastval.length ) ) { if ( val.length < lastval.length || change.length != ( val.length - lastval.length ) ) {


Expand Down

0 comments on commit 2051c49

Please sign in to comment.