code: function(node, className) {
              node = Y.Dom.get(node);
              if (!node) {
                  return null;
              }
              var method = function(el) { return Y.Dom.hasClass(el, className); };
              return Y.Dom.getAncestorBy(node, method);
          }
docs: Returns the nearest ancestor with the given className.
  @method getAncestorByClassName
  @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point
  @param {String} className
  @return {Object} HTMLElement