json-dom
    Preparing search index...

    Function revokeActiveListeners

    • Detach every active listener for one event type from a DomItem's element, regardless of which EventListener descriptor each one belongs to, and clear that event's activeListeners bucket. Unlike deactivateListener, this does not update the listenerActive/activeResponder state on the individual descriptors.

      Parameters

      • eventName: string

        The name of the trigger event whose active listeners will be revoked.

      • item: DomItem

        The DomItem to revoke active listeners from.

      Returns DomItem

      The same DomItem, with all active listeners for this event detached.