Permalink
Browse files

Merge branch 'search-filter-bar-2416' of git@github.com:hpbuniat/jque…

…ry-mobile into slider-background
  • Loading branch information...
2 parents 92a21f9 + df68b01 commit 3c1ba101ef35b3d2b57f2ec89109b0b12239eb07 @hpbuniat committed Sep 19, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 js/jquery.mobile.listview.filter.js
View
@@ -44,8 +44,7 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() {
// Change val as lastval for next execution
$this.jqmData( "lastval" , val );
-
- change = val.replace( new RegExp( "^" + 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 3c1ba10

Please sign in to comment.