Methods
add(cb)
- Source:
Add a subscriber.
Parameters:
Name | Type | Description |
---|---|---|
cb |
function |
call()
- Source:
Call the subscribers.
destroy()
- Source:
Delete all subscribers.
remove(cb)
- Source:
Remove a subscriber.
Parameters:
Name | Type | Description |
---|---|---|
cb |
function |
subscribe() → {function}
- Source:
Subscribe a new subscriber.
Returns:
A subscriptions. Call to function to unsubscribe.
- Type
- function