Classdesc

This class is a polyfill for the Event class for older browsers that do not have native support.

Hierarchy

  • Event

Properties

NONE: 0 = EVENT_PHASES_ENUM.NONE

Static

Property

The NONE constant.

CAPTURING_PHASE: 1 = EVENT_PHASES_ENUM.CAPTURING

Static

Property

The CAPTURING_PHASE constant.

AT_TARGET: 2 = EVENT_PHASES_ENUM.AT_TARGET

Static

Property

The AT_TARGET constant.

BUBBLING_PHASE: 3 = EVENT_PHASES_ENUM.BUBBLING

Static

Property

The BUBBLING_PHASE constant.

NONE: 0 = EVENT_PHASES_ENUM.NONE

Property

The NONE constant.

CAPTURING_PHASE: 1 = EVENT_PHASES_ENUM.CAPTURING

Property

The CAPTURING_PHASE constant.

AT_TARGET: 2 = EVENT_PHASES_ENUM.AT_TARGET

Property

The AT_TARGET constant.

BUBBLING_PHASE: 3 = EVENT_PHASES_ENUM.BUBBLING

Property

The BUBBLING_PHASE constant.

#internalData: EventInternalData

Property

The internal data of the event.

Constructors

Accessors

  • get type(): string
  • Returns the type of the event

    Returns

    Returns string

  • get eventPhase(): 0 | 2
  • Returns the event phase of the event

    Returns

    Returns 0 | 2

  • get cancelBubble(): boolean
  • Returns the cancelBubble property of the event

    Returns

    Returns boolean

  • set cancelBubble(value: boolean): void
  • Sets the cancelBubble property of the event

    Parameters

    • value: boolean

      the value to set

    Returns void

  • get bubbles(): boolean
  • Returns a boolean indicating whether the event bubbles up through the DOM or not

    Returns

    Returns boolean

  • get cancelable(): boolean
  • Returns a boolean indicating whether the event is cancelable or not

    Returns

    Returns boolean

  • get returnValue(): boolean
  • Returns a boolean indicating whether the event's default action can be prevented or not

    Returns

    Returns boolean

  • set returnValue(value: boolean): void
  • Sets the returnValue property of the event

    Parameters

    • value: boolean

      the value to set

    Returns void

  • get defaultPrevented(): boolean
  • Returns a boolean indicating whether the event's default action has been prevented or not

    Returns

    Returns boolean

  • get composed(): boolean
  • Returns a boolean indicating whether the event is composed or not

    Returns

    Returns boolean

  • get isTrusted(): boolean
  • Returns a boolean indicating whether the event is trusted or not

    Returns

    Returns boolean

  • get timeStamp(): number
  • Returns the time stamp of the event

    Returns

    Returns number

Methods

  • Stops the propagation of the event

    Returns

    Returns void

  • Stops the immediate propagation of the event

    Returns

    Returns void

  • Prevents the event's default action

    Returns

    Returns void

  • Initializes the event

    Deprecated

    Parameters

    • type: string

      the type of the event

    • bubbles: boolean = false

      a boolean indicating whether the event bubbles up through the DOM or not

    • cancelable: boolean = false

      a boolean indicating whether the event is cancelable or not

    Returns void

Generated using TypeDoc v0.23.24