Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventDispatcher

Hierarchy

Index

Methods

Methods

off

  • Removes a handler from event type. If no handler is provided, all handlers will be removed from the event

    Parameters

    • type: string
    • Optional handler: undefined | ((event: Event) => void)

    Returns EventDispatcher

    The object that dispatched the event

Abstract on

Abstract once

  • Adds function handler to handle event type just once. The handler will be automatically removed after first execution

    Parameters

    • type: string
    • handler: (event: Event) => void
        • Parameters

          Returns void

    Returns EventDispatcher

    The object that dispatched the event

Generated using TypeDoc