Class: Event
Constructor
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 code: plugins/path/EventTarget.js (Line 202)
Extends
- Object
Public Properties
- Source code: plugins/path/EventTarget.js (Line 253)
- Source code: plugins/path/EventTarget.js (Line 235)
- Source code: plugins/path/EventTarget.js (Line 265)
- Source code: plugins/path/EventTarget.js (Line 244)
[readonly] data : Object
The data that was passed in with this event.
[readonly] target : Object
The original target the event triggered on.
[readonly] timeStamp : number
The timestamp when the event occurred.
[readonly] type : string
The string name of the event that this represents.
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Event.html