src/console/simpleyui.js
function(node, className) {
        var re = Y.DOM._getRegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
        return re.test(node.className);
    }
function(node, className) {
        var re = Y.DOM._getRegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
        return re.test(node.className);
    }
function ( node , className ) { var re = Y . DOM . _getRegExp ( '(?:^|\\s+)' + className + '(?:\\s+|$)' ) ; return re . test ( node . className ) ; }
Determines whether a DOM element has the given className.
@method hasClass
@for DOM
@param {HTMLElement} element The DOM element.
@param {String} className the class name to search for
@return {Boolean} Whether or not the element has the given class.
Determines whether a DOM element has the given className .