Skip to content

Commit

Permalink
Fixed filterKeys bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KoryNunn committed Oct 4, 2012
1 parent 7fc0ef2 commit b41e04a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gel.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@

for(var key in objectToFilter){
var item = objectToFilter[key];
if(Array.isArray(item) && isNaN(key)){
continue;
}
if(typeof functionToCompare === "function"){
if(functionToCompare.call(this, item)){
filteredObject[key] = item;
Expand Down

0 comments on commit b41e04a

Please sign in to comment.