-
destroy()
-
Destroy the instance
Returns:
-
Type
-
jBlocks.Component
-
emit(event, data)
-
Execute all handlers attached for the given event
Parameters:
Name |
Type |
Description |
event |
String
|
|
data |
*
|
|
Returns:
-
Type
-
jBlocks.Component
-
off(event, callback)
-
Remove an event handler function for the given event
Parameters:
Name |
Type |
Description |
event |
String
|
|
callback |
function
|
|
Returns:
-
Type
-
jBlocks.Component
-
on(event, callback)
-
Attach an event handler function for the given event
Parameters:
Name |
Type |
Description |
event |
String
|
|
callback |
function
|
|
Returns:
-
Type
-
jBlocks.Component
-
once(event, callback)
-
Attach an event handler function for the given event
which will be called only once
Parameters:
Name |
Type |
Description |
event |
String
|
|
callback |
function
|
|
Returns:
-
Type
-
jBlocks.Component