Skip to content

Instantly share code, notes, and snippets.

@niklasfi
Created February 7, 2012 21:07
Show Gist options
  • Save niklasfi/1761952 to your computer and use it in GitHub Desktop.
Save niklasfi/1761952 to your computer and use it in GitHub Desktop.
var EventEmitter = require('events').EventEmitter
var me = function(){
ee = new EventEmitter()
ee.on("info",
function(){
console.log("hello world")
}
)
return ee.emit
}
me()("info")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment