on2

fun <EventType : Enum<EventType>> on2(type: EventType, callback: EventSource, options: Options?, context: Any?): EventDispatcher

Register an event handler function for one or more events.

Parameters

{object} context