Class: Event

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

Extends

  • Object

Members

<readonly> data : Object

The data that was passed in with this event.

Type:
  • Object
Source:
src/plugins/path/EventTarget.js line 253

<readonly> target : Object

The original target the event triggered on.

Type:
  • Object
Source:
src/plugins/path/EventTarget.js line 235

<readonly> timeStamp : Number

The timestamp when the event occurred.

Type:
  • Number
Source:
src/plugins/path/EventTarget.js line 265

<readonly> type : String

The string name of the event that this represents.

Type:
  • String
Source:
src/plugins/path/EventTarget.js line 244

phaser-ce@2.9.2 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-11-09 using Tomorrow.