tonic + npm: super-event-emitter

node v0.12.18
endpointsharetweet
var EventEmitter = require("super-event-emitter") function MyCar() { EventEmitter.mixin(this); } var ferrari = new MyCar(); ferrari.on('test', function () { console.log('triggered!'); }, this); ferrari.emit('test');
Created from: https://tonicdev.com/npm/super-event-emitter
Loading…

no comments

    sign in to comment