Permalink
Browse files

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

  • Loading branch information...
1 parent f4491e3 commit 5f4a9bf37556f0072928580627a7f3885e2477fa @jaspermdegroot jaspermdegroot committed Nov 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/listview.filter.js
@@ -19,7 +19,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 5f4a9bf

Please sign in to comment.