Skip to content

Instantly share code, notes, and snippets.

@bhurlow
Created May 12, 2014 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhurlow/4e91523fbf2095a7087c to your computer and use it in GitHub Desktop.
Save bhurlow/4e91523fbf2095a7087c to your computer and use it in GitHub Desktop.
order of opts matters for event emitter constructors
function limb() {
ee.call(this)
var self = this
this.emit('canemit')
}
// this before the inherits call wont work
module.exports = new limb
inherits(limb, ee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment