minsky-base

1.0.0 • Public • Published

Base

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

Dependencies

  • Core - 1.0.0

Getting started

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

Constructor Parameters

… Core.js parameters

Options

… Core.js options

Properties

blm

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

Methods

… Core.js methods


To Do

  • none

Readme

Keywords

none

Package Sidebar

Install

npm i minsky-base

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

2.99 kB

Total Files

3

Last publish

Collaborators

  • minsky