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. <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 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.2.0-dev on Thu Oct 03 2013 02:35:51 GMT+0100 (BST) using the DocStrap template.