From a23a42d1e9b8986720a7681e148c95a9b3f8e3be Mon Sep 17 00:00:00 2001
From: Jed Parsons <jedp@me.com>
Date: Wed, 23 May 2012 09:11:36 -0700
Subject: [PATCH] IE doesn't support indexOf; using underscore methods

---
 resources/static/shared/helpers.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/resources/static/shared/helpers.js b/resources/static/shared/helpers.js
index 4c9f47042..67278ec08 100644
--- a/resources/static/shared/helpers.js
+++ b/resources/static/shared/helpers.js
@@ -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;
   }
 
-- 
GitLab