Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 277 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 277 Bytes

EventEmitter

EventEmitter<string,object> emitter = new EventEmiiter<string,object>();

emitter.on("event",(param)=>{
//Event Callback
});

//Remove event listener
emitter.off("event",callback);

//Listen to this event for once only
//emiiter.once("event",callback);