EventEmitter.prototype.once should "return this;"

This commit is contained in:
Daniel C 2010-12-07 18:44:21 +02:00 committed by Ryan Dahl
parent e3ce73a214
commit ca8cc71bd0

View File

@ -89,6 +89,8 @@ EventEmitter.prototype.once = function(type, listener) {
self.removeListener(type, g);
listener.apply(this, arguments);
});
return this;
};
EventEmitter.prototype.removeListener = function(type, listener) {