The EventList is a class that can be used to create a list of event listeners that can be invoked

Type Parameters

  • TArgs extends any = any

Implements

Constructors

Properties

isEventList = true

checked during instantiate to create a new instance

Accessors

  • get isInvoking(): boolean
  • If the event is currently being invoked

    Returns boolean

  • get listenerCount(): number
  • How many callback methods are subscribed to this event

    Returns number

Methods

  • Add a new event listener to this event

    Parameters

    • cb: ((args: TArgs) => void)
        • (args): void
        • Parameters

          Returns void

    Returns Function

  • Invoke all the methods that are subscribed to this event

    Parameters

    Returns boolean

  • Returns void

  • Parameters

    Returns void

  • set an event target to try invoke the EventTarget dispatchEvent when this EventList is invoked

    Parameters

    • key: string
    • target: object

    Returns void