Closed marianoguerra closed 12 years ago
I agree, that's an annoying wtf, it should just work out of the box. Would be even better to polyfill map
and forEach
ourselves, or not rely on them. @munter, what do you think?
Since it's marketed as a microlib without dependencies I think we should polyfill, maybe with a seperate IE polyfill file if people don't wan't the overhead
How about this?
I like the approach but it doesn't work since forEach and map require bind to be present and the lib also uses filter
here is a gist with the minimal shim I could get to make it run
Serves me right for not testing :P
I'll make it work properly in a few hours when I'm off work. This time with actual IE testing :D
hi!
it took me some time given the limited dev resources on IE7 to figure out that one-color doesn't work on it because it uses stuff like Array.forEach and Array.map, it would be nice to have a note on the README explaining that in order to run it in older browsers something like es5shim is required (https://github.com/kriskowal/es5-shim)
thanks for the lib!