Skip to content

Commit dcb31b8

Browse files
fix(ie8): fix calls to indexOf and filter
Closes #1556
1 parent 19715d1 commit dcb31b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function omit(obj) {
174174
var copy = {};
175175
var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
176176
for (var key in obj) {
177-
if (keys.indexOf(key) == -1) copy[key] = obj[key];
177+
if (indexOf(keys, key) == -1) copy[key] = obj[key];
178178
}
179179
return copy;
180180
}

src/urlMatcherFactory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ Type.prototype.$asArray = function(mode, isSearch) {
520520
val = arrayWrap(val);
521521
var result = map(val, callback);
522522
if (allTruthyMode === true)
523-
return result.filter(falsey).length === 0;
523+
return filter(result, falsey).length === 0;
524524
return arrayUnwrap(result);
525525
};
526526
}

0 commit comments

Comments
 (0)