Creating a simple event emitter using nodejs

Nodejs lets you con­vert any object into an event emit­ter by sim­ply extend­ing one of its classes.As far as front end is con­cerned, frame­works like Flux are designed around the fact that the unit…