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