Guest User

Untitled

a guest
Mar 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var CLASS_NAME = "className",
  2. BOUNDING_BOX = "boundingBox",
  3. SKIN_PREFIX = "yui-skin-",
  4. SKIN_REGEXP = new RegExp("(?:^|\\s)" + SKIN_PREFIX + "(\S+)");
  5.  
  6. ...
  7.  
  8. getActiveSkin : function() {
  9. var match;
  10. this.get(BOUNDING_BOX).ancestor(
  11. function(n) {
  12. return n.get(CLASS_NAME).match(SKIN_REGEXP);
  13. }
  14. );
  15. return (match && match[1] || null);
  16. }
Add Comment
Please, Sign In to add comment