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 for adding/removing class #9

Closed ja1984 closed 8 years ago

ja1984 commented 8 years ago

Current implementation of adding and removing class is very ugly with replace. Look in to changing to use classList, support is not 100% on all browsers so this needs to be taken care of.

Browser support http://caniuse.com/#search=classlist

Information about classList https://developer.mozilla.org/en/docs/Web/API/Element/classList

Existing pollyfill to look into https://github.com/eligrey/classList.js/blob/master/classList.js