Provide a solid base for most classes withing the MINSKY framework.
It extends Core.js by adding the BLManager. Base will be used most of the time, only a handful of classes will directly extend from Core.js. The BLManager will only be constructed the moment it is requested for use internally or externally thanks to the getter. Base.js delays the auto init process so it will force the code to run initialize at the end of the construction process automatically.
Class type: Manager
- Core - 1.0.0
Base is not intended to be constructed as is. Classes should use it as base to extend from, just like Core.js is supposed to be used.
// imports
import '$dep/Base';
// private statics
// class definition
export default class CustomClass extends Base {
// constructor
constructor (args, objectName = 'Custom Class') {
// run super constructor
super(args, objectName);
}
// methods
destroy() {
// super destroy
super.destroy();
}
}
// private or exported util methods
// private handlers
… Core.js parameters
… Core.js options
Type: BLManager
Default: instance
An instance of the BLManager to facilitate scope binding within the classes. It tries to closely match conventional Event scopes used in other languages.
… Core.js properties
… Core.js methods
- none