Class: SignalBinding



new SignalBinding(signal, listener, isOnce, listenerContext, priority)


Object that represents a binding between a Signal and a listener function. This is an internal constructor and shouldn't be called by regular users. Inspired by Joa Ebert AS3 SignalBinding and Robert Penner's Slot classes.

Name Type Argument Description
signal Phaser.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 this variable inside listener function).

priority number <optional>

The priority level of the event listener. (default = 0).

  • Miller Medeiros
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Mon Feb 24 2014 01:12:33 GMT-0000 (GMT) using the DocStrap template.