Event

new Event(target, name, data)

Creates an homogenous object for tracking events so users can know what to expect.

Parameters:
Name Type Description
target Object

The target object that the event is called on

name String

The string name of the event that was triggered

data Object

Arbitrary event data to pass along

Source - plugins/path/EventTarget.js, line 202

Extends

  • Object

Members

<readonly> data :Object

The data that was passed in with this event.

Source - plugins/path/EventTarget.js, line 253

<readonly> target :Object

The original target the event triggered on.

Source - plugins/path/EventTarget.js, line 235

<readonly> timeStamp :Number

The timestamp when the event occurred.

Source - plugins/path/EventTarget.js, line 265

<readonly> type :String

The string name of the event that this represents.

Source - plugins/path/EventTarget.js, line 244
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:09 GMT+0100 (BST) using the DocStrap template.