Skip to content

Commit

Permalink
Merge pull request #1 from animir/patch-1
Browse files Browse the repository at this point in the history
Add filter by 'data-text' attr
  • Loading branch information
animir authored Mar 12, 2017
2 parents 5097247 + bf5ba5d commit 934aa12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.fastLiveFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jQuery.fn.fastLiveFilter = function(list, options) {
for (var i = 0; i < len; i++) {
li = lis[i];
innerText = !options.selector ?
(li.textContent || li.innerText || "") :
(li.dataset.text || li.textContent || li.innerText || "") :
$(li).find(options.selector).text();

if (innerText.toLowerCase().indexOf(filter) >= 0) {
Expand Down

0 comments on commit 934aa12

Please sign in to comment.