Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 227 Bytes
events = require("events")
module.exports.inject = (object) ->
object.emitter = events.EventEmitter()
object.on = (key, handler) ->
object.emitter.on key, handler
object.emit = ->
object.emitter.emit arguments