specious / cloud9carousel

:cyclone: 3D-perspective carousel for jQuery / Zepto
http://j.mp/cloud9demo
233 stars 88 forks source link

Doesn't work in IE8 #12

Open aaronlinley opened 8 years ago

aaronlinley commented 8 years ago

Not really an issue, just a suggestion. I was using the carousel and noticed it wasn't working in IE8, seems to be due to an issue with .indexOf. I found adding this to the top solved my issue:

if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(val) { return jQuery.inArray(val, this); }; }

specious commented 8 years ago

Array.prototype.indexOf() is presumably not implemented in IE 8 and earlier.

I'm too busy to delve into this right now, but a pull request implementing a small polyfill might be worth looking at.