[Pkg-javascript-commits] [backbone] 162/173: use _.indexOf instead of Array.prototype.indexOf in test. Fixes failing IE8 case

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit a640b3bdd4da54f077bfe9b8a474a709164a9244
Author: Adam Krebs <amk528 at cs.nyu.edu>
Date:   Tue Mar 29 14:50:06 2016 -0400

    use _.indexOf instead of Array.prototype.indexOf in test. Fixes failing IE8 case
---
 test/collection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/collection.js b/test/collection.js
index a0f6bf6..dd98aca 100644
--- a/test/collection.js
+++ b/test/collection.js
@@ -1898,7 +1898,7 @@
       assert.deepEqual(changed.merged, []);
       assert.ok(changed.removed.length === 2);
 
-      assert.ok(changed.removed.indexOf(model) > -1 && changed.removed.indexOf(model2) > -1);
+      assert.ok(_.indexOf(changed.removed, model) > -1 && _.indexOf(changed.removed, model2) > -1);
     });
     collection.remove([model, model2]);
   });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list