Constructor
new Observer()
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:
Members
isEnabled :boolean
TODO
:number
targetCountTODO
:array
targetsTODO
Methods
Disable()
TODO
Enable()
TODO
Flush()
Stop watching targets and flushes them
Hook(p_evt, p_fn, p_subscriber)
Register a signal subscription
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_evt |
Symbol | ||
p_fn |
function | ||
p_subscriber |
* |
null
|
Observe(p_target) → {*}
Starts watching for signals of a given target
Parameters:
Name | Type | Description |
---|---|---|
p_target |
* |
ObserveOnly(p_target) → {*}
Starts watching for signals of a given target, and removes all other targets
Parameters:
Name | Type | Description |
---|---|---|
p_target |
* | may be null |
PreventRelease()
- Inherited From:
Unhook(p_evt, p_fn, p_subscriber)
Unregister a signal subscription
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_evt |
Symbol | ||
p_fn |
function | ||
p_subscriber |
* |
null
|
Unobserve(p_target) → {*}
Stop watching for signals of a given target
Parameters:
Name | Type | Description |
---|---|---|
p_target |
* |
()
_CleanUp- Overrides: