Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Slider: Support for a range-theme #2381

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
second attempt to fix #2416
  • Loading branch information
hpbuniat committed Sep 19, 2011
commit df68b0188cfcaf1d339cd0972fb0e807ea9fc522
9 changes: 2 additions & 7 deletions js/jquery.mobile.listview.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {

Expand Down