mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-28 06:21:32 +08:00
Improved icon search inFilter function code.
This commit is contained in:
parent
497348024e
commit
a0a37becbe
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user