Remove remaining removeListener ref

This commit is contained in:
Daniel Imms
2016-12-31 07:11:47 -08:00
parent 0d9d3aca1a
commit 965ebde22f
+1 -1
View File
@@ -44,7 +44,7 @@ export class EventEmitter {
public once(type, listener): any {
function on() {
let args = Array.prototype.slice.call(arguments);
this.removeListener(type, on);
this.off(type, on);
return listener.apply(this, args);
}
(<any>on).listener = listener;