Lines Matching refs:main
6 * a main class.
23 Base._build = function(name, main, extensions, px, sx, cfg) {
27 builtClass = build._ctor(main, cfg),
28 buildCfg = build._cfg(main, cfg, extensions),
128 _tmpl: function(main) {
133 Y.extend(BuiltClass, main);
156 _ctor : function(main, cfg) {
159 builtClass = (dynamic) ? build._tmpl(main) : main,
173 _cfg : function(main, cfg, exts) {
181 c = main,
265 * main function, and array of extension functions (classes)
276 * is created which extends the main class, and acts as the
279 * the main class, modifying the main class' prototype.</p>
284 * will always aggregate as defined by the main class' static _buildCfg
293 * @param {Function} main The main class on which to base the built class
297 * @return {Function} A custom class, created from the provided main and extension classes
299 Base.build = function(name, main, extensions, cfg) {
300 return build(name, main, extensions, null, null, cfg);
361 * @param {Function} main The base class which the new class should extend. This class needs to be Base or a class derived from base (e.g. Widget).
375 * @param {Function} main The existing class into which the extensions should be mixed. The class needs to be Base or a class derived from Base (e.g. Widget)
376 * @param {Function[]} extensions The set of extension classes which will mixed into the existing main class.
377 * @return {Function} The modified main class, with extensions mixed in.
379 Base.mix = function(main, extensions) {
380 return build(null, main, extensions, null, null, {dynamic:false});
387 * when the Base class is used as the main class passed to