Namespace: jBlocks

jBlocks

Methods to define components using declaration and create new instances. Also helps to find and destroy components.

Classes

Component

Methods


<static> define(name, declaration)

Define a new component
Parameters:
Name Type Description
name String
declaration Object
Returns:
Type
jBlocks

<static> destroy(node)

Destroy instance binded to the node
Parameters:
Name Type Description
node HTMLElement
Returns:
Type
jBlocks

<static> forget(name)

Remove declaration from cache
Parameters:
Name Type Description
name String name of component
Returns:
Type
jBlocks

<static> get(node)

Create and return a new instance of component
Parameters:
Name Type Description
node HTMLElement
Returns:
a new instance
Type
jBlocks.Component