Class: SignalBinding

SignalBinding

Phaser.SignalBinding

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

Phaser.SignalBinding

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.

Parameters:
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).

Author:
  • Miller Medeiros http://millermedeiros.github.com/js-signals/
Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Thu Nov 28 2013 15:56:36 GMT-0000 (GMT) using the DocStrap template.