Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

events: remove misleading comment

  • Loading branch information...
mmalecki authored and bnoordhuis committed Apr 15, 2012
1 parent c945eae commit f065c87bcf65c3ffa50980bba5562ed7159b86db
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/events.js
@@ -94,8 +94,6 @@ EventEmitter.prototype.emit = function() {
} }
}; };


// EventEmitter is defined in src/node_events.cc
// EventEmitter.prototype.emit() is also defined there.
EventEmitter.prototype.addListener = function(type, listener) { EventEmitter.prototype.addListener = function(type, listener) {
if ('function' !== typeof listener) { if ('function' !== typeof listener) {
throw new Error('addListener only takes instances of Function'); throw new Error('addListener only takes instances of Function');

0 comments on commit f065c87

Please sign in to comment.
You can’t perform that action at this time.