turbodombuilder - v0.9.22
    Preparing search index...

    Class Delegate<CallbackType>

    Delegate

    Class representing a set of callbacks that can be maintained and executed together.

    Type Parameters

    • CallbackType extends (...args: any[]) => any

      The type of callbacks accepted by the delegate.

    Hierarchy

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    onAdded: SimpleDelegate<(callback: CallbackType) => void> = ...

    Delegate fired when a callback is added.

    Methods

    • Parameters

      Returns boolean

      A boolean indicating whether the callback was found and removed.

      Removes a callback from the list.

    • Parameters

      Returns boolean

      A boolean indicating whether the callback was found.

      Checks whether a callback is in the list.

    • Returns void

      Clears added callbacks

    • Parameters

      Returns void

      Adds a callback to the list.