Revert "toContain works with array-like objects (Arguments, HTMLCollections, etc)"

IE 8 doesn't have Array.prototype.indexOf so this breaks there.
Reverting until we can figure out a better way to solve across all
supported browsers.

This reverts commit 663fbd0cdb.
This commit is contained in:
slackersoft
2014-11-01 14:28:32 -07:00
parent d4fc787ea7
commit a4d134521a
3 changed files with 2 additions and 21 deletions

View File

@@ -19,12 +19,7 @@ getJasmineRequireObj().matchersUtil = function(j$) {
}
return false;
}
if (!haystack) {
return false;
} else {
var indexOf = haystack.indexOf || Array.prototype.indexOf;
return indexOf.call(haystack, needle) >= 0;
}
return !!haystack && haystack.indexOf(needle) >= 0;
},
buildFailureMessage: function() {