mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-15 17:50:28 +08:00
Improved icon search inFilter function code.
This commit is contained in:
parent
ed09be926e
commit
5dd7edb644
@ -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