waytale - v0.5.1
    Preparing search index...

    Event emitter as mixin.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns {}

    • Unsubscribe from an event by name with a specific handler.

      Parameters

      • eventName: any

        event to unsubscribe from

      • handler: any

        callback handling the event

      Returns void

    • Subscribe to an event by name with a specific handler.

      Parameters

      • eventName: any

        event to subscribe to

      • handler: any

        callback handling the event

      Returns void

    • Subscribe to an event, but run the handler only once. After running exactly once the handler will be immediately unsubscribed.

      Parameters

      • eventName: any

        event to subscribe to

      • handler: any

        callback handling the event

      Returns void

    • Trigger the calls of the event handlers subscribed to the given event.

      Parameters

      • eventName: any

        event to trigger

      • ...args: any[]

        arguments to forward to the event handlers

      Returns void