Class: EventTarget

EventTarget

new EventTarget()

Mixins event emitter functionality to a class

Source:
src/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:
src/plugins/path/EventTarget.js line 27

phaser-ce@2.20.0 is on GitHub and NPM

Documentation generated by JSDoc 3.6.7 on 2022-12-10 using Tomorrow.