Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventDispatcher

Hierarchy

  • EventDispatcher

Index

Constructors

  • Returns EventDispatcher

Properties

events: EventListener[] = []

Methods

  • addEventListener(type: string, listener: (e: Event) => void): void
  • Parameters

    • type: string
    • listener: (e: Event) => void

    Returns void

  • dispatchEvent(event: Event): void
  • Parameters

    Returns void

  • removeEventListener(type: string, listener: Function): void
  • Parameters

    • type: string
    • listener: Function

    Returns void

Generated using TypeDoc