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 |
Extends
- Object
Members
-
<readonly> data : Object
-
The data that was passed in with this event.
Type:
- Object
-
<readonly> target : Object
-
The original target the event triggered on.
Type:
- Object
-
<readonly> timeStamp : Number
-
The timestamp when the event occurred.
Type:
- Number
-
<readonly> type : String
-
The string name of the event that this represents.
Type:
- String