Methods
-
<private> destroy()
-
Description
Cleans up
Details
-
on( listener, listenerContext, priority ) → {SignalBinding}
-
Description
Ties a listener to a signal.
Parameters
Name Type Attributes Description listener
function The function to call when the signal is raised
listenerContext
object <nullable> A context to set for the listener. The event host may set a default for this value, but you may override that here.
priority
number <nullable> A priority for the listener.
Returns
Details
-
once( listener, listenerContext, priority ) → {SignalBinding}
-
Description
Ties a listener to for a signal for one execution.
Parameters
Name Type Attributes Description listener
function The function to call when the signal is raised
listenerContext
object <nullable> A context to set for the listener. The event host may set a default for this value, but you may override that here.
priority
number <nullable> A priority for the listener.
Returns
Details
-
off( listener, listenerContext ) → {function}
-
Description
Unbinds a listener to a signal.
Parameters
Name Type Attributes Description listener
function The function to unbind
listenerContext
object <nullable> The context that was bound
Returns
Details
-
has( listener, listenerContext ) → {boolean}
-
Description
Check if listener was attached to Signal.
Parameters
Name Type Attributes Description listener
function The function to check
listenerContext
object <nullable> The context that was bound
Returns
Details
-
toString()
-
Description
Strings!
Details