Enable strict null checks and restrict DOM access in common

Part of #1507
Part of #1319
This commit is contained in:
Daniel Imms
2018-09-17 13:44:31 -07:00
parent 86c78e726d
commit a7a58aa055
4 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export class EventEmitter extends Disposable implements IEventEmitter, IDisposab
super();
// Restore the previous events if available, this will happen if the
// constructor is called multiple times on the same object (terminal reset).
this._events = this._events || {};
this._events = (<any>this)._events || {};
}
public on(type: string, listener: XtermListener): void {