2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('widget-skin',function(Y){var BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",SKIN="skin",_getClassName=Y.ClassNameManager.getClassName;Y.Widget.prototype.getSkinName=function(){var root=this.get(CONTENT_BOX)||this.get(BOUNDING_BOX),search=new RegExp('\\b'+_getClassName(SKIN)+'-(\\S+)'),match;if(root){root.ancestor(function(node){match=node.get('className').match(search);return match;});}
9 return(match)?match[1]:null;};},'3.3.0',{requires:['widget-base']});