cloud9carousel icon indicating copy to clipboard operation
cloud9carousel copied to clipboard

Doesn't work in IE8

Open aaronlinley opened this issue 8 years ago • 1 comments

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); }; }

aaronlinley avatar May 04 '16 14:05 aaronlinley

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.

specious avatar Jul 08 '16 22:07 specious