Sha256: fe5a0be97890fd26d300af108ddcce5cbe8c708398a94f0575df999c44b211ec
Contents?: true
Size: 271 Bytes
Versions: 20
Compression:
Stored size: 271 Bytes
Contents
var events = require('events'); module.exports.inject = function(object) { object.emitter = events.EventEmitter(); object.on = function(key, handler) { object.emitter.on(key, handler); } object.emit = function() { object.emitter.emit(arguments); } }
Version data entries
20 entries across 20 versions & 1 rubygems