Class EventTarget_2

Base class for objects that dispatches events.

Hierarchy (view full)

Constructors

Methods

  • Add an event listener

    Parameters

    • type: string
    • listener: Function

    Returns EventTarget_2

    The self object, for chainability.

  • Check if any event listener of the given type is added

    Parameters

    • type: string

    Returns boolean

  • Check if an event listener is added

    Parameters

    • type: string
    • listener: Function

    Returns boolean

  • Remove an event listener

    Parameters

    • type: string
    • listener: Function

    Returns EventTarget_2

    The self object, for chainability.