jeffwatkins/jasmine-dom — pull request #9 by foxbunny (2014-02-07 12:22:33+00:00)
Title: Fixes #8: 'downgrades' some of the array-related API calls

The code uses features like `[].indexOf()` and `[].slice.call()` on objects that don't support it on IE8. I've added fallbacks/replacements where needed in order to address this.

`jasmine.DOM.indexOf` has been added as replacement for `[].indexOf()` (uses native function on browsers that support it)

`jasmine.DOM.slice` has been rewritten to use a conventional C-style `for` loop since I didn't want to mess with feature detection.

Another change in this pull is that `spec/jasmine-1.0.1` directory has been renamed to just `spec/jasmine` since I was testing with a different version, and though it'd be cleaner this way.

Unit tests pass on all major browers (Windows only, though) + IE8 using Jasmine 1.3.1.