events: remove misleading comment

This commit is contained in:
Maciej Małecki 2012-04-15 11:09:37 +02:00 committed by Ben Noordhuis
parent c945eae942
commit f065c87bcf

View File

@ -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) {
if ('function' !== typeof listener) {
throw new Error('addListener only takes instances of Function');