• Parameters

    • listener: (e: any) => any

      The listener function will be called when the event happens.

    • OptionalthisArgs: any

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

    • Optionaldisposables: Disposable[]

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

    Returns Disposable