Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventDispatcher

Hierarchy

  • EventDispatcher

Implemented by

Index

Methods

Methods

off

  • off(type: string, handler?: undefined | function): Object
  • 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 | function

    Returns Object

    The object that dispatched the event

on

once

  • once(type: string, handler: function): Object
  • Adds function handler to handle event type just once. The handler will be automatically removed after first execution

    Parameters

    • type: string
    • handler: function
        • Parameters

          Returns void

    Returns Object

    The object that dispatched the event

Generated using TypeDoc