new SignalBinding(signal, listener, isOnce, listenerContext, priority)
Phaser.SignalBinding
Object that represents a binding between a Signal and a listener function. <br />- <strong>This is an internal constructor and shouldn't be called by regular users.</strong> <br />- inspired by Joa Ebert AS3 SignalBinding and Robert Penner's Slot classes.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
signal |
Signal | Reference to Signal object that listener is currently bound to. |
|
listener |
function | Handler function bound to the signal. |
|
isOnce |
boolean | If binding should be executed just once. |
|
listenerContext |
object |
<optional> |
Context on which listener will be executed (object that should represent the |
priority |
number |
<optional> |
The priority level of the event listener. (default = 0). |
- Source: