Improved icon search inFilter function code.

This commit is contained in:
William Boman 2014-10-21 01:59:35 +02:00
parent 497348024e
commit a0a37becbe

View File

@ -54,14 +54,10 @@ $(function() {
}
function inFilter(val, filter) {
var found = false;
for (var i = 0; i < filter.length; i++) {
if (filter[i].match(val)) {
found = true;
break;
}
if (filter[i].match(val)) return true;
}
return found;
return false;
}