Namespace: $elements

$elements

todoc
Source:

Members

(static) types :Object

List of types
Type:
  • Object
Source:

Methods

(static) addType(type, elementConstructor, instantiatableopt, extendableopt) → {Object}

Adds a type
Parameters:
Name Type Attributes Default Description
type String
elementConstructor function
instantiatable Boolean <optional>
true
extendable Boolean <optional>
true
Source:
Returns:
Object
$elements

(static) getExtendable(type) → (nullable) {function}

Gets an extendable element type
Parameters:
Name Type Description
type String
Source:
Returns:
function

(static) getInstantiatable(type) → (nullable) {function}

Gets an instantiatable element type
Parameters:
Name Type Description
type String
Source:
Returns:
function

(static) getType(type) → (nullable) {Object}

Gets an element type
Parameters:
Name Type Description
type String
Source:
Returns:
Object

(static) hasType(type) → {Boolean}

Checks if $elements contains a specific element type
Parameters:
Name Type Description
type String
Source:
Returns:
Boolean

(static) removeType(type) → {Object}

Removes an element type
Parameters:
Name Type Description
type String
Source:
Returns:
Object
$elements