• Removes an event handler for the specified event

    Type Parameters

    • T

    Parameters

    • target: T
    • eventName: string

      {string} - The name of the event, with optional namespaces or just the namespaces, such as "click", "click.mynamespace" or ".mynamespace"

    • handlerRef: any

      {any} - The callback function that needs to be removed from the given event, when using a namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers otherwise this will only remove events with this specific handler.

    • OptionalevtNamespace: string | string[]

      [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace, if the eventName also includes a namespace the namespace(s) are merged into a single namespace

    • useCapture: boolean = false

      [Optional] Defaults to false

    Returns void