Closed ja1984 closed 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
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