This commit is contained in:
Andrey Fedorov
2012-11-05 02:21:36 -08:00
committed by Stefan Thomas
parent 59f87b7ea9
commit 47b6d39eea

View File

@@ -48,7 +48,7 @@ EventEmitter.prototype.listeners = function (e) {
EventEmitter.prototype.once = function (e, f) {
var that = this;
this.on(e, function g() {
f.apply(es, arguments);
f.apply(e, arguments);
that.off(e, g);
});
return this;