Fix 2 issues breaking IE8 compatibility (#764)
Fix 2 issues breaking IE8 compatibility (#764)

* Fix the shim _slice to work in IE8. Also caches the "slice" shim the first time it's used.

Fix "indexof" to use the jquery ".inArray" to keep IE8 compatibility.

* Incorporate changes suggested by @Rycochet including not overriding the "Array.prototype.slice" function, and instead writing to an "internal" Array.prototype._vel_slice.

* Remove pointless check for previously defined function (it's called once, fails once, never called again).

* Scratch that. Just store the actual custom function in _slice.

* Return the cached slice.

* Remove use of $.inArray so that @Rycochet can write a shim for it for non-jQuery users.

julianshapiro/velocity,julianshapiro/velocity,julianshapiro/velocity