Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Open
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
Filterable: data-no-filter attr only accept true
  • Loading branch information
carsonip committed Jul 11, 2015
commit e7b4ae01fa27f02e4126f378f3868021251cd11d
2 changes: 1 addition & 1 deletion js/widgets/filterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ $.widget( "mobile.filterable", {

// Partition the items into those to be hidden and those to be shown
for ( idx = 0 ; idx < length ; idx++ ) {
noFilter = ( $.mobile.getAttribute( filterItems[ idx ], "no-filter" ) );
noFilter = $.mobile.getAttribute( filterItems[ idx ], "no-filter" ) === true;
dst = ( !noFilter && callback.call( filterItems[ idx ], idx, val ) ) ? hide : show;
dst.push( filterItems[ idx ] );
}
Expand Down