Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/events"

Index

Functions

addListener

  • addListener(element: IRegisterElement, events: string | string[], listener: EventListenerOrEventListenerObject): void
  • Adds an event listener to element.

    Parameters

    • element: IRegisterElement

      the element to bind to.

    • events: string | string[]

      the event types to add listeners for.

    • listener: EventListenerOrEventListenerObject

      the listener to bind.

    Returns void

removeListener

  • removeListener(element: IRegisterElement, events: string | string[], listener: EventListenerOrEventListenerObject): void
  • Removes an event listener from element.

    Parameters

    • element: IRegisterElement

      the element to unbind.

    • events: string | string[]

      the event types to remove.

    • listener: EventListenerOrEventListenerObject

      the bound listener.

    Returns void

Generated using TypeDoc