Function addEventListeners

  • Bind the listener to the array of events

    Parameters

    • events: string[]

      An string array of event names to bind the listener to

    • listener: any

      The event callback to call when the event is triggered

    • Optional excludeEvents: string[]

      [Optional] An array of events that should not be hooked (if possible), unless no other events can be.

    • 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 boolean

    true - when at least one of the events was registered otherwise false

Generated using TypeDoc