BaseBuild.js revision 04f6f082e2978c0be5c674a54883b28e50040c39
* The base-build submodule provides Base.build functionality, which * can be used to create custom classes, by aggregating extensions onto * The build configuration for the Base class. * Defines the static fields which need to be aggregated * when the Base class is used as the main class passed to * the <a href="#method_Base.build">Base.build</a> method. * @property Base._buildCfg * Builds a custom constructor function (class) from the * main function, and array of extension functions (classes) * provided. The NAME field for the constructor function is * defined by the first argument passed in. * The cfg object literal supports the following properties * <dt>dynamic <boolean></dt> * <p>If true (default), a completely new class * is created which extends the main class, and acts as the * host on which the extension classes are augmented.</p> * <p>If false, the extensions classes are augmented directly to * the main class, modifying the main class' prototype.</p> * <dt>aggregates <String[]></dt> * <dd>An array of static property names, which will get aggregated * on to the built class, in addition to the default properties build * will always aggregate as defined by the main class' static _buildCfg * @param {Function} name The name of the new class. Used to defined the NAME property for the new class. * @param {Function} main The main class on which to base the built class * @param {Function[]} extensions The set of extension classes which will be * @param {Object} cfg Optional. Build configuration for the class (see description). * @return {Function} A custom class, created from the provided main and extension classes // Shallow isolate aggregates for (i =
0; i < l; i++) {
for (i =
0; i < l; i++) {