addEventListener<IEvent extends Event> method
EventListener<IEvent>
addEventListener<IEvent extends Event>(
- EventType eventType,
- EventCallBack<
IEvent> callBack
Implementation
EventListener<IEvent> addEventListener<IEvent extends Event>(
EventType eventType, EventCallBack<IEvent> callBack) {
var listener = EventListener(eventType, callBack);
EventDispatcher.eventDispatcher.addListener(listener);
return listener;
}