Class EventDispatcherAbstract

Hierarchy

Constructors

Methods

Constructors

Methods

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

    Returns

    The object that dispatched the event

    Type Parameters

    • K extends never

    Parameters

    • type: K
    • Optional handler: ((event: EventMap[K]) => void)

    Returns EventDispatcher

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

    Returns

    The object that dispatched the event

    Type Parameters

    • K extends never

    Parameters

    Returns EventDispatcher

Generated using TypeDoc