mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Remove unused helper
This commit is contained in:
@@ -31,17 +31,6 @@ import { Unicode11Addon } from '../addons/xterm-addon-unicode11/out/Unicode11Add
|
||||
// little weird here as we're importing "this" module
|
||||
import { Terminal as TerminalType, ITerminalOptions } from 'xterm';
|
||||
|
||||
interface IDisposable {
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
function addDisposableListener(element: HTMLElement, type: string, listener: (event: any) => void): IDisposable {
|
||||
element.addEventListener(type, listener);
|
||||
return {
|
||||
dispose: () => element.removeEventListener(type, listener)
|
||||
};
|
||||
}
|
||||
|
||||
export interface IWindowWithTerminal extends Window {
|
||||
term: TerminalType;
|
||||
Terminal?: typeof TerminalType;
|
||||
|
||||
Reference in New Issue
Block a user