ja1984 / jackbox

Javascript library to display notifications
https://ja1984.github.io/jackbox/
GNU General Public License v3.0
17 stars 6 forks source link

Use classList to manipulate element classes #12

Closed Fredrik-Oberg closed 7 years ago

Fredrik-Oberg commented 7 years ago

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.