fix escHandlers type and disposing

This commit is contained in:
Jörg Breitbart
2019-08-11 18:38:35 +02:00
parent 7c47fafb07
commit 3a5d0bd368
+3 -2
View File
@@ -239,7 +239,7 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
// handler lookup containers
protected _printHandler: PrintHandler;
protected _executeHandlers: any;
protected _executeHandlers: {[flag: number]: ExecuteHandler};
protected _csiHandlers: IHandlerCollection<CsiHandler>;
protected _escHandlers: IHandlerCollection<EscHandler>;
protected _oscParser: IOscParser;
@@ -328,7 +328,8 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
}
public dispose(): void {
this._executeHandlers = null;
this._csiHandlers = Object.create(null);
this._executeHandlers = Object.create(null);
this._escHandlers = Object.create(null);
this._oscParser.dispose();
this._dcsParser.dispose();