Created
October 20, 2011 15:30
-
-
Save odoe/1301435 to your computer and use it in GitHub Desktop.
JavaScript shim for Node.js EventEmitter
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
var EXTENSION = require(__dirname + '/build/default/extension.node').EXTENSION; | |
var events = require('events'); | |
inherits(EXTENSION, events.EventEmitter); | |
exports.EXTENSION = EXTENSION; | |
function inherits(target, source) { | |
for (var k in source.prototype) { | |
target.prototype[k] = source.prototype[k]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment