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

Commit 5b537ca

Browse files
Listview: make it possible to set option filter programmatically. Fixes #5245.
1 parent 82701e5 commit 5b537ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.listview.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $.mobile.listview.prototype.options.filterCallback = function( text, searchValue
1515
return text.toLowerCase().indexOf( searchValue ) === -1;
1616
};
1717

18-
$( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
18+
$( document ).delegate( "ul, ol", "listviewcreate", function() {
1919

2020
var list = $( this ),
2121
listview = list.data( "listview" );

0 commit comments

Comments
 (0)