classnamemanager.js revision 6af74f0f13ff81f220d9f945488e4f4c00c934f0
2N/A* Contains a singleton (ClassNameManager) that enables easy creation and caching of 2N/A* prefixed class names. 2N/A* @module classnamemanager 2N/A * A singleton class providing: 2N/A * <li>Easy creation of prefixed class names</li> 2N/A * <li>Caching of previously created class names for improved performance.</li> 2N/A * @class ClassNameManager 2N/A * Configuration property indicating the prefix for all CSS class names in this YUI instance. 2N/A * Configuration property indicating the delimiter used to compose all CSS class names in 2N/A * this YUI instance. 2N/A * Returns a class name prefixed with the the value of the 2N/A * <code>Y.config.classNamePrefix</code> attribute + the provided strings. 2N/A * Uses the <code>Y.config.classNameDelimiter</code> attribute to delimit the 2N/A * provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar 2N/A * @method getClassName 2N/A * @param {String}+ one or more classname bits to be joined and prefixed 2N/A // Test for multiple classname bits 2N/A // memoize in classNames map