Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];} var events=this.registry[eventType]; if(!events)return; events.forEach(function(handler){return handler.apply(undefined,args);}); }},{key:"removeListener",value:function removeListener( eventType,listener){ var events=this.registry[eventType]; if(!events)return; var index=events.indexOf(listener); if(index===-1)return; events.splice(index,1); if(events.length===0){ delete this.registry[eventType]; } }}]);return EventEmitter;}();exports.default=EventEmitter;