Class: shaka.util.FakeEvent

Constructor

new FakeEvent(type, opt_dictopt)

Create an Event work-alike object based on the dictionary. The event should contain all of the same properties from the dict.
Parameters:
Name Type Attributes Description
type string
opt_dict Object <optional>
Extends:
  • Event
Source:

Members

(constant) bubbles :boolean

Type:
  • boolean
Source:

(constant) cancelable :boolean

Type:
  • boolean
Source:

currentTarget :EventTarget

Type:
  • EventTarget
Source:

(constant) defaultPrevented :boolean

Type:
  • boolean
Source:

(constant) isTrusted :boolean

Type:
  • boolean
Source:

stopped :boolean

Non-standard property read by FakeEventTarget to stop processing listeners.
Type:
  • boolean
Source:

target :EventTarget

Type:
  • EventTarget
Source:

(constant) timeStamp :number

According to MDN, Chrome uses high-res timers instead of epoch time. Follow suit so that timeStamps on FakeEvents use the same base as on native Events.
Type:
  • number
Source:
See:

(constant) type :string

Type:
  • string
Source:

Methods

preventDefault()

Does nothing, since FakeEvents have no default. Provided for compatibility with native Events.
Source:

stopImmediatePropagation()

Stops processing event listeners for this event. Provided for compatibility with native Events.
Source:

stopPropagation()

Does nothing, since FakeEvents do not bubble. Provided for compatibility with native Events.
Source: