Skip to content

Commit

Permalink
fix(ie8): fix calls to indexOf and filter
Browse files Browse the repository at this point in the history
Closes #1556
  • Loading branch information
christopherthielen committed Nov 18, 2014
1 parent 19715d1 commit dcb31b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function omit(obj) {
var copy = {};
var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
for (var key in obj) {
if (keys.indexOf(key) == -1) copy[key] = obj[key];
if (indexOf(keys, key) == -1) copy[key] = obj[key];
}
return copy;
}
Expand Down
2 changes: 1 addition & 1 deletion src/urlMatcherFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ Type.prototype.$asArray = function(mode, isSearch) {
val = arrayWrap(val);
var result = map(val, callback);
if (allTruthyMode === true)
return result.filter(falsey).length === 0;
return filter(result, falsey).length === 0;
return arrayUnwrap(result);
};
}
Expand Down

0 comments on commit dcb31b8

Please sign in to comment.