Lines Matching refs:main
4 * a main class.
21 Base._build = function(name, main, extensions, px, sx, cfg) {
25 builtClass = build._ctor(main, cfg),
26 buildCfg = build._cfg(main, cfg, extensions),
126 _tmpl: function(main) {
131 Y.extend(BuiltClass, main);
154 _ctor : function(main, cfg) {
157 builtClass = (dynamic) ? build._tmpl(main) : main,
171 _cfg : function(main, cfg, exts) {
179 c = main,
263 * main function, and array of extension functions (classes)
274 * is created which extends the main class, and acts as the
277 * the main class, modifying the main class' prototype.</p>
282 * will always aggregate as defined by the main class' static _buildCfg
291 * @param {Function} main The main class on which to base the built class
295 * @return {Function} A custom class, created from the provided main and extension classes
297 Base.build = function(name, main, extensions, cfg) {
298 return build(name, main, extensions, null, null, cfg);
359 * @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).
373 * @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)
374 * @param {Function[]} extensions The set of extension classes which will mixed into the existing main class.
375 * @return {Function} The modified main class, with extensions mixed in.
377 Base.mix = function(main, extensions) {
378 return build(null, main, extensions, null, null, {dynamic:false});
385 * when the Base class is used as the main class passed to