Function removeEventHandler

  • Trys to remove event handler(s) for the specified event/namespace to the window, body and document

    Parameters

    • eventName: string

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

    • callback: 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.

    • Optional evtNamespace: string | string[]

      [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.

    Returns void

Generated using TypeDoc