Constructor
new Query()
Extends
Methods
addEventListener(type, listener)
Adds a listener to an event type.
Parameters:
Name | Type | Description |
---|---|---|
type | String | The type of event to listen to. |
listener | function | The function that gets called when the event is fired. |
- Overrides
dispatchEvent(event)
Fire an event.
Parameters:
Name | Type | Description |
---|---|---|
event | Object | The event that gets fired. |
- Overrides
dispose()
Disposes the Query object. Rejects any pending query.
removeEventListener(type, listener)
Removes a listener from an event type.
Parameters:
Name | Type | Description |
---|---|---|
type | String | The type of the listener that gets removed. |
listener | function | The listener function that gets removed. |