Constructor
new SignalBox()
Extends
Broadcasting
This section list the main methods used to watch/unwatch signals on this object. For more info on signals, see signals
This section list the main methods used to watch/unwatch signals on this object. For more info on signals, see signals
Methods
Unwatch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
Watch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
WatchOnce(p_signalId, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
(p_signal, …args)
_Broadcast- Inherited From:
Methods
()
_Init- Inherited From:
()
_PostInit- Inherited From:
Methods
(p_func)
_Bind- Inherited From:
Members
:boolean
isReleasing- Inherited From:
Methods
Release()
- Inherited From:
()
_CleanUp- Inherited From:
Members
silent :boolean
TODO
Methods
Add(p_signalId, p_fn, p_listener)
Register a signal subscription
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_signalId |
Symbol | ||
p_fn |
function | ||
p_listener |
* |
null
|
AddOnce(p_signalId, p_fn, p_listener)
Register a signal subscription that will be removed after it fires once.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_signalId |
Symbol | ||
p_fn |
function | ||
p_listener |
* |
null
|
Broadcast(p_signalId, …args)
Broadcast a signal with arguments
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
p_signalId |
Symbol | ||
args |
* |
<repeatable> |
Clear()
Clears all signals & subscriptions
PreventRelease()
- Inherited From:
Remove(p_signalId, p_fn, p_listener)
Unregister a signal subscription
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_signalId |
Symbol | ||
p_fn |
function | ||
p_listener |
* |
null
|
RemoveAll(p_signalId)
Unregister all subscription to a given signal
Parameters:
Name | Type | Description |
---|---|---|
p_signalId |
Symbol |