Function: onEvent()
onEvent(
listener,thisArgs?,disposables?):Disposable
Parameters
listener
(e) => any
The listener function will be called when the event happens.
thisArgs?
any
The this-argument which will be used when calling the event listener.
disposables?
An array to which the resulting Disposable will be added.
Returns
A disposable which unsubscribes the event listener.