new EventTarget()
Mixins event emitter functionality to a class
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