Use the classList to add or remove classes makes the code cleaner.
Added polyfill javascript file for optional use of needed polyfilles.
Array.prototype.forEach() is used for the custom class names.
Don't see the need to support IE8 and less.
Added comment in readme about what polyfill to use if legacy browser support is needed.
This is for issue #9
Use the classList to add or remove classes makes the code cleaner. Added polyfill javascript file for optional use of needed polyfilles.
Array.prototype.forEach() is used for the custom class names. Don't see the need to support IE8 and less. Added comment in readme about what polyfill to use if legacy browser support is needed.