Class PreciseAudioEvent
Constructors
PreciseAudioEvent(EventTypes, PreciseAudio)
Declaration
new PreciseAudioEvent(eventType: EventTypes, target: PreciseAudio)
Parameters
Type |
Name |
Description |
EventTypes |
eventType |
|
PreciseAudio |
target |
|
Properties
AT_TARGET
Declaration
Property Value
bubbles
Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
Declaration
Property Value
BUBBLING_PHASE
Declaration
Property Value
cancelable
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
Declaration
Property Value
cancelBubble
Declaration
Property Value
CAPTURING_PHASE
Declaration
Property Value
composed
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
Declaration
Property Value
currentTarget
Declaration
PreciseAudio currentTarget
Property Value
defaultPrevented
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
Declaration
defaultPrevented: boolean
Property Value
Event
Declaration
Property Value
eventPhase
Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Declaration
Property Value
isTrusted
Returns true if event was dispatched by the user agent, and false otherwise.
Declaration
Property Value
NONE
Declaration
Property Value
returnValue
Declaration
Property Value
srcElement
Declaration
srcElement: EventTarget | null
Property Value
target
Declaration
Property Value
timeStamp
Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
Declaration
Property Value
type
Returns the type of event, e.g. "click", "hashchange", or "submit".
Declaration
Property Value
Methods
composedPath()
Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
Declaration
Returns
initEvent(string, boolean, boolean)
Declaration
function initEvent(type: string, bubbles?: boolean, cancelable?: boolean)
Parameters
Type |
Name |
Description |
string |
type |
|
boolean |
bubbles |
|
boolean |
cancelable |
|
preventDefault()
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Declaration
function preventDefault()
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Declaration
function stopImmediatePropagation()
stopPropagation()
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Declaration
function stopPropagation()