Sha256: 4e7b4b99d091f4ff8de1940fe00cec7ad209e153d9485356a34f6341ceaf6737

Contents?: true

Size: 227 Bytes

Versions: 6

Compression:

Stored size: 227 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vulcan-0.8.2 server/lib/on.coffee
vulcan-0.8.1 server/lib/on.coffee
vulcan-0.8.0 server/lib/on.coffee
vulcan-0.7.2 server/lib/on.coffee
vulcan-0.7.1 server/lib/on.coffee
vulcan-0.7.0 server/lib/on.coffee