summaryrefslogtreecommitdiffstats
path: root/js/yui3/dom-class
diff options
context:
space:
mode:
Diffstat (limited to 'js/yui3/dom-class')
-rw-r--r--js/yui3/dom-class/dom-class-min.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/yui3/dom-class/dom-class-min.js b/js/yui3/dom-class/dom-class-min.js
new file mode 100644
index 000000000..d3376721c
--- /dev/null
+++ b/js/yui3/dom-class/dom-class-min.js
@@ -0,0 +1,7 @@
+/*
+YUI 3.7.3 (build 5687)
+Copyright 2012 Yahoo! Inc. All rights reserved.
+Licensed under the BSD License.
+http://yuilibrary.com/license/
+*/
+YUI.add("dom-class",function(d){var b,a,c;d.mix(d.DOM,{hasClass:function(g,f){var e=d.DOM._getRegExp("(?:^|\\s+)"+f+"(?:\\s+|$)");return e.test(g.className);},addClass:function(f,e){if(!d.DOM.hasClass(f,e)){f.className=d.Lang.trim([f.className,e].join(" "));}},removeClass:function(f,e){if(e&&a(f,e)){f.className=d.Lang.trim(f.className.replace(d.DOM._getRegExp("(?:^|\\s+)"+e+"(?:\\s+|$)")," "));if(a(f,e)){c(f,e);}}},replaceClass:function(f,e,g){c(f,e);b(f,g);},toggleClass:function(f,e,g){var h=(g!==undefined)?g:!(a(f,e));if(h){b(f,e);}else{c(f,e);}}});a=d.DOM.hasClass;c=d.DOM.removeClass;b=d.DOM.addClass;},"3.7.3",{requires:["dom-core"]}); \ No newline at end of file