src/javascripts/timeout-transition-group.js
/**
 * Functions for element class management to replace dependency on jQuery
 * addClass, removeClass and hasClass
 */
Functions for element class management to replace dependency on jQuery
addClass, removeClass and hasClass
Functions for element class management to replace dependency on jQuery addClass removeClass and hasClass
function addClass(element, className) {
    if (element.classList) {
        element.classList.add(className);
    } else if (!hasClass(element, className)) {
        element.className = element.className + ' ' + className;
    }
    return element;
}
function addClass ( element , className ) { if ( element . classList ) { element . classList . add ( className ) ; } else if ( ! hasClass ( element , className ) ) { element . className = element . className + ' ' + className ; } return element ; }
Functions for element class management to replace dependency on jQuery
 addClass, removeClass and hasClass
Functions for element class management to replace dependency on jQuery addClass removeClass and hasClass