Created
May 12, 2014 19:24
-
-
Save bhurlow/4e91523fbf2095a7087c to your computer and use it in GitHub Desktop.
order of opts matters for event emitter constructors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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