Show:
Methods
(static) add(…handler)
...
Register a hook handler
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
handler |
function |
<repeatable> |
Function to bind. |
- Source:
(static) fire(…data) → {Hook}
...
Call hook handlers with data.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
any |
<repeatable> |
- Source:
Returns:
- Type
- Hook
(static) remove(…handler)
...
Unregister a hook handler
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
handler |
function |
<repeatable> |
Function to unbind. |
- Source: