EventTarget

new EventTarget()

Mixins event emitter functionality to a class

Source - plugins/path/EventTarget.js, line 23
Example
function MyEmitter() {}

     Phaser.EventTarget.mixin(MyEmitter.prototype);

     var em = new MyEmitter();
     em.emit('eventName', 'some data', 'some more data', {}, null, ...);

Methods

<static> call()

Backward compat from when this used to be a function

Source - plugins/path/EventTarget.js, line 27
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.3 on Tue Dec 06 2016 23:48:56 GMT+0000 (GMT Standard Time) using the DocStrap template.