The type of callbacks accepted by the delegate.
The type of callbacks accepted by the delegate.
Function
remove
The callback to unregister.
Whether the callback was registered and has been removed.
Function
has
The callback to look for.
Whether the callback is registered.
Function
fire
Arguments passed to each callback.
The last value returned by a callback, ignoring those that
returned undefined.
Function
add
The callback to register.
Register a callback, then fire Delegate.onAdded with it.
Delegate
Description
A set of callbacks kept together and fired as one, used throughout the library wherever a component announces something (
onChanged,onSelected, ...). Subscribe with Delegate.add and drop the subscription with Delegate.remove. Unlike its plain counterpart, this one announces its own subscriptions through Delegate.onAdded.