Permalink
Browse files

fixed typo (+ -> -) to fix #2416

  • Loading branch information...
hpbuniat committed Sep 20, 2011
1 parent df68b01 commit 2051c49cc8abfa1b7f169ec7c8eadc4ee42a0838
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.listview.filter.js
@@ -44,7 +44,7 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() {
// Change val as lastval for next execution
$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 ) ) {

0 comments on commit 2051c49

Please sign in to comment.