Rename dom listener function for better clarity

This commit is contained in:
Daniel Imms
2018-06-21 10:05:40 +10:00
parent c0f4a8eb7c
commit a44f496ec7
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import * as Strings from './Strings';
import { ITerminal, IBuffer } from './Types';
import { isMac } from './shared/utils/Browser';
import { RenderDebouncer } from './utils/RenderDebouncer';
import { addDisposableListener } from './ui/Lifecycle';
import { addDisposableDomListener } from './ui/Lifecycle';
import { IDisposable } from 'xterm';
const MAX_ROWS_TO_READ = 20;
@@ -89,7 +89,7 @@ export class AccessibilityManager implements IDisposable {
this._disposables.push(this._terminal.renderer.addDisposableListener('resize', () => 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._disposables.push(addDisposableListener(window, 'resize', () => this._refreshRowsDimensions()));
this._disposables.push(addDisposableDomListener(window, 'resize', () => this._refreshRowsDimensions()));
}
public dispose(): void {