Methods
-
waitForEvents(eventTarget, eventNames)
-
Waits for multiple DOM events to fire
Parameters:
Name Type Description eventTargetobject element to listen for events on (default document) eventNamesArray.<string> | string array or csv string of event names Returns:
resolves with array of event objects- Type
- Promise.<Array>
Example
waitForEvents(window, 'DOMContentLoaded,online').then(function(result) { // do stuff });
Type Definitions
-
CanvasWithInterval
-
Type:
- Object
Properties:
Name Type Description imageany Annotation canvas in form of a dataURL startTimenumber Start time of canvas endTimenumber End time of canvas -
FormattedTime
-
Type:
- Object
Properties:
Name Type Description valuestring The formatted time formatstring The format of the formatted time