Improved icon search inFilter function code.

This commit is contained in:
William Boman 2014-10-21 01:59:35 +02:00
parent b694c1e966
commit 0ee50817e8

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;
}