diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/build/classnamemanager/classnamemanager-debug.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/build/classnamemanager/classnamemanager-debug.js Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,91 @@ +/* +YUI 3.10.3 (build 2fb5187) +Copyright 2013 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ + +YUI.add('classnamemanager', function (Y, NAME) { + +/** +* Contains a singleton (ClassNameManager) that enables easy creation and caching of +* prefixed class names. +* @module classnamemanager +*/ + +/** + * A singleton class providing: + * + *
Y.config.classNamePrefix attribute + the provided strings.
+ * Uses the Y.config.classNameDelimiter attribute to delimit the
+ * provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar
+ *
+ * @method getClassName
+ * @param {String}+ classnameSection one or more classname sections to be joined
+ * @param {Boolean} skipPrefix If set to true, the classname will not be prefixed with the default Y.config.classNameDelimiter value.
+ */
+ getClassName: Y.cached(function () {
+
+ var args = Y.Array(arguments);
+
+ if (args[args.length-1] !== true) {
+ args.unshift(sPrefix);
+ } else {
+ args.pop();
+ }
+
+ return args.join(sDelimiter);
+ })
+
+ };
+
+}();
+
+
+}, '3.10.3', {"requires": ["yui-base"]});