Members
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 |
Returns:
Object$elements
(static) getExtendable(type) → (nullable) {function}
Gets an extendable element type
Parameters:
Name | Type | Description |
---|---|---|
type |
String |
Returns:
function(static) getInstantiatable(type) → (nullable) {function}
Gets an instantiatable element type
Parameters:
Name | Type | Description |
---|---|---|
type |
String |
Returns:
function(static) getType(type) → (nullable) {Object}
Gets an element type
Parameters:
Name | Type | Description |
---|---|---|
type |
String |
Returns:
Object(static) hasType(type) → {Boolean}
Checks if $elements contains a specific element type
Parameters:
Name | Type | Description |
---|---|---|
type |
String |