Function removeEventListenerFrom

Removes an event listener that has been added using addEventListenerTo.

IMPORTANT: If you have added a listener using the built-in EventTarget:addEventListener, then you should use EventTarget:removeEventListener, to remove it, not this function.

  • Parameters

    • target: EventTarget
    • eventType: string
    • handler: EventListenerOrEventListenerObject
    • Optionaloptions: boolean | AddEventListenerOptions

    Returns boolean

    true if successfully removed, or false if the handler has not been added by us.