Function: onEvent()
onEvent(
listener,thisArgs?,disposables?):Disposable
Parameters
• listener
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?: Disposable[]
An array to which a Disposable will be added.
Returns
A disposable which unsubscribes the event listener.