• Parameters

    • listener: ((e) => any)

      The listener function will be call when the event happens.

        • (e): any
        • Parameters

          • e: any

          Returns any

    • Optional thisArgs: any

      The 'this' which will be used when calling the event listener.

    • Optional disposables: DisposableGroup

      An array to which a {{IDisposable}} will be added.

    Returns Disposable

    a disposable to remove the listener again.