Skip to content
Snippets Groups Projects
Commit a23a42d1 authored by Jed Parsons's avatar Jed Parsons
Browse files

IE doesn't support indexOf; using underscore methods

parent 97603fc7
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,11 @@
function whitelistFilter(obj, validKeys) {
var filtered = {};
for (var key in obj) {
if (validKeys.indexOf(key) !== -1) {
_.each(_.keys(obj), function(key) {
if (_.indexOf(validKeys, key) !== -1) {
filtered[key] = obj[key];
}
}
});
return filtered;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment