EventEmitter.prototype.once should "return this;"
This commit is contained in:
parent
e3ce73a214
commit
ca8cc71bd0
@ -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…
x
Reference in New Issue
Block a user