The base class for classes that hold a set of functions to be called in response to an event or change in value, e.g. Observable and Event.

Type Parameters

  • Args extends any[] = []

Accessors

Constructors

Methods

  • Add a new handler function

    Parameters

    • f: ((...args: Args) => void)

      The callback function to be bound.

        • (...args): void
        • Parameters

          Returns void

    • priority: number = 0

    Returns void

  • Clears all listeners from the event.

    Returns void

  • Unbind an existing function

    Parameters

    • f: ((...args: Args) => void)

      The callback function to be unbound.

        • (...args): void
        • Parameters

          Returns void

    Returns void