EventTarget.js 614 B

12345678
  1. export function removeEventListeners(eventList){for(const eventInfo of eventList){eventInfo.eventTarget.removeEventListener(eventInfo.eventType,eventInfo.listener,eventInfo.thisObject);}
  2. eventList.splice(0);}
  3. export class EventTarget{addEventListener(eventType,listener,thisObject){}
  4. once(eventType){}
  5. removeEventListener(eventType,listener,thisObject){}
  6. hasEventListeners(eventType){}
  7. dispatchEventToListeners(eventType,eventData){}}
  8. self.Common=self.Common||{};Common=Common||{};Common.EventTarget=EventTarget;EventTarget.removeEventListeners=removeEventListeners;Common.EventTarget.EventDescriptor;Common.Event;