Permalink
Browse files

Listview: make it possible to set option filter programmatically. Fixes

  • Loading branch information...
jaspermdegroot committed Nov 2, 2012
1 parent 6930c30 commit 26cb01f4bc6a9d43f71c2e03483434c006315cf6
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/listview.filter.js
@@ -18,7 +18,7 @@ var defaultFilterCallback = function( text, searchValue, item ) {
$.mobile.listview.prototype.options.filterCallback = defaultFilterCallback;
-$( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
+$( document ).delegate( "ul, ol", "listviewcreate", function() {
var list = $( this ),
listview = list.data( "listview" );

0 comments on commit 26cb01f

Please sign in to comment.