Remove extends EventEmitter from more classes

This commit is contained in:
Daniel Imms
2019-04-09 20:36:08 -07:00
parent 2e0e24c382
commit 36567e60df
7 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export class AccessibilityManager extends Disposable {
// should be listened to instead? That would mean that the order of events are always
// guarenteed
this.register(this._terminal.addDisposableListener('dprchange', () => this._refreshRowsDimensions()));
this.register(this._terminal.renderer.addDisposableListener('resize', () => this._refreshRowsDimensions()));
this.register(this._terminal.renderer.onCanvasResize(() => this._refreshRowsDimensions()));
// This shouldn't be needed on modern browsers but is present in case the
// media query that drives the dprchange event isn't supported
this.register(addDisposableDomListener(window, 'resize', () => this._refreshRowsDimensions()));