Make all emitters readonly

This commit is contained in:
Daniel Imms
2022-10-01 08:02:32 -07:00
parent cf9949840b
commit 1a22c44f2b
22 changed files with 67 additions and 67 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ export class WebglAddon implements ITerminalAddon {
private _terminal?: Terminal;
private _renderer?: WebglRenderer;
private _onChangeTextureAtlas = new EventEmitter<HTMLElement>();
private readonly _onChangeTextureAtlas = new EventEmitter<HTMLElement>();
public readonly onChangeTextureAtlas = this._onChangeTextureAtlas.event;
private _onContextLoss = new EventEmitter<void>();
private readonly _onContextLoss = new EventEmitter<void>();
public readonly onContextLoss = this._onContextLoss.event;
constructor(