Clean reference to custom key event handler on dispose

This commit is contained in:
Daniel Imms
2018-06-21 14:14:36 +10:00
parent 27b1c89f43
commit 4d52cd3c66
+1
View File
@@ -232,6 +232,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
public dispose(): void {
super.dispose();
this._customKeyEventHandler = null;
removeTerminalFromCache(this);
this.handler = () => {};
this.write = () => {};