json-dom
    Preparing search index...

    Function createEventResponder

    • Store the handler function and associated abort controller instance if available to be used when events are triggered.

      Parameters

      • eventHandler: EventHandler

        The eventHandler wrapped function to be called for the event.

      • abort: boolean | AbortController | null = null

        Assign an AbortSignal provided or create one (if true), otherwise null.

      Returns EventResponder