new CollisionEvent(eventType, objectives)
todoc
Parameters:
Name | Type | Description |
---|---|---|
eventType |
String | |
objectives |
* |
Extends
Members
cancelable :Boolean
Indicates whether the event is cancelable or not
- Inherited From:
- Type:
- Boolean
- Default Value:
- true
- Source:
(readonly) data :Object
Custom data of the event
- Inherited From:
- Type:
- Object
- Default Value:
- null
- Source:
defaultPrevented :Boolean
Returns a boolean indicating whether or not eventProto.preventDefault() was called on the event
- Inherited From:
- Type:
- Boolean
- Default Value:
- false
- Source:
(readonly) objectives :Array
The objectives of the event
(readonly) originalEvent :Event
The original event
- Inherited From:
- Type:
- Default Value:
- null
- Source:
propagationStopped :Boolean
Returns a boolean indicating whether or not eventProto.stopPropagation() was called on the event
- Inherited From:
- Type:
- Boolean
- Default Value:
- false
- Source:
returnValue :*
The return value of the event
- Inherited From:
- Type:
- *
- Default Value:
- null
- Source:
(readonly) target :Object
The target of the event
- Inherited From:
- Type:
- Object
- Default Value:
- null
- Source:
(readonly) timeStamp :Number
The time (in milliseconds since the epoch) at which the event was created
- Inherited From:
- Type:
- Number
- Default Value:
- 0
- Source:
(readonly) type :String
The type of the event
- Inherited From:
- Type:
- String
- Default Value:
- null
- Source:
Methods
preventDefault() → {Event}
Cancels the event if it is cancelable, without stopping further propagation of the event
- Inherited From:
- Source:
Returns:
Eventthis
stopPropagation() → {Event}
Prevents further propagation of the current event
- Inherited From:
- Source:
Returns:
Eventthis
toString() → {String}
Returns the string value of the event
- Inherited From:
- Source: