NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily
https://clusterize.js.org
MIT License
7.22k stars 412 forks source link

IE 8 Support #10

Closed dhenson02 closed 9 years ago

dhenson02 commented 9 years ago

I need it. Some other people need it.

So I added it.

Feature checks for support of forEach and event listener methods, and converted the NodeList childNodes to an array manually.

My forEach substitution is currently only made to provide a direct drop-in replacement for the exact forEach use-cases in the present code. This means if you want to add something like a context change later, or use the callback arguments as you would expect (aka, (current, index, array) instead of just (current)), it can be added to the polyfill pretty easily.

Really only making an issue for tracking purposes though since the PR is already submitted.