From 6d7dd71577c86585a8eb2b9fc070475862bf5b70 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 2 Jul 2013 16:20:56 -0400 Subject: [PATCH] Tests: IE8 support for log capture No Array.indexOf. We are living like animals! --- test/test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index e117df73..37b7a075 100644 --- a/test/test.js +++ b/test/test.js @@ -106,7 +106,12 @@ })(testLog[i]); testLog[i].contains = function (needle) { - return this.indexOf(needle) > -1; + for (var i = 0; i < this.length; i++) { + if (this[i] == needle) { + return true; + } + } + return false; }; } }