kit
    Preparing search index...

    Function listenOnce

    • Listen an event, and automatically unlisten it after it's first run

      Parameters

      • types: string

        The event type or types (comma separated)

      • selector: string

        The selector to run the event on

      • callback: EventCallback

        The function to run when the event fires

      Returns void