src/console/simpleyui.js
function(node, className) {
        if (className && hasClass(node, className)) {
            node.className = Y.Lang.trim(node.className.replace(Y.DOM._getRegExp('(?:^|\\s+)' +
                            className + '(?:\\s+|$)'), ' '));

            if ( hasClass(node, className) ) { // in case of multiple adjacent
                removeClass(node, className);
            }
        }                 
    }
function(node, className) {
        if (className && hasClass(node, className)) {
            node.className = Y.Lang.trim(node.className.replace(Y.DOM._getRegExp('(?:^|\\s+)' +
                            className + '(?:\\s+|$)'), ' '));

            if ( hasClass(node, className) ) { // in case of multiple adjacent
                removeClass(node, className);
            }
        }                 
    }
function ( node , className ) { if ( className && hasClass ( node , className ) ) { node . className = Y . Lang . trim ( node . className . replace ( Y . DOM . _getRegExp ( '(?:^|\\s+)' + className + '(?:\\s+|$)' ) , ' ' ) ) ; if ( hasClass ( node , className ) ) { // in case of multiple adjacent removeClass ( node , className ) ; } } }
Removes a class name from a given element.
@method removeClass
@for DOM
@param {HTMLElement} element The DOM element.
@param {String} className the class name to remove from the class attribute
Removes a class name from a given element .