proto-events

eventemitter based on proto-scope

Eventemitter on my proto-scope module.

Code mainly are from https://gist.github.com/Contra/2759355 .

npm install --save proto-events
{events} = require './events.js'
 
= events.new()
 
a.on 'demo'(data) ->
  console.log 'demo:'data
 
a.emit 'demo''data?'

BSD-2-Clause