code: function(node, className) {
          var re = Y.DOM._getRegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
          return re.test(node.className);
      }
docs: 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.