Browse Source

EventEmitter.prototype.once should "return this;"

v0.7.4-release
Daniel C 14 years ago
committed by Ryan Dahl
parent
commit
ca8cc71bd0
  1. 2
      lib/events.js

2
lib/events.js

@ -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) {

Loading…
Cancel
Save