@witchcraft/spellcraft
    Preparing search index...

    Function detach

    • Detach the listeners from an element.

      Or you can just use the abort controller returned by attach.

      Parameters

      • el: AttachTarget
      • listeners: Record<EventTypes, AnyFunction>
      • opts: Partial<Record<EventTypes, AddEventListenerOptions>> = ...

        Listeners need ot be detached with the same options they were attached with.

      Returns void