Instance of the EventBinder object.

Hierarchy

  • EventBinder

Constructors

Properties

Accessors

Methods

Constructors

Properties

_listeners: [string, AnyFunction, (() => void)][] = []

Stores all handlers that listen to native events. [ target, event, callback, remover ]

target: EventTarget

Accessors

Methods

  • Dispatches a custom event of the target

    Returns

    an event object

    Parameters

    • type: string

      the event type

    • Optional detail: AnyFunctionArgs

      the detail object of the event

    Returns CustomEvent<any>

  • Removes the event handler.

    Parameters

    • events: string | string[]

      the event name or names to remove.

    • Optional callback: AnyFunction

      specific callback to remove.

    Returns void

Generated using TypeDoc