Update tslint, fix lint
This commit is contained in:
@@ -72,7 +72,7 @@ export function attach(term: any, socket: WebSocket, bidirectional: boolean, buf
|
||||
|
||||
socket.addEventListener('close', term.detach.bind(term, socket));
|
||||
socket.addEventListener('error', term.detach.bind(term, socket));
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Detaches the given terminal from the given socket
|
||||
@@ -91,7 +91,7 @@ export function detach(term: any, socket: WebSocket): void {
|
||||
}
|
||||
|
||||
delete term.socket;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
export function apply(terminalConstructor: any): void {
|
||||
@@ -118,4 +118,4 @@ export function apply(terminalConstructor: any): void {
|
||||
terminalConstructor.prototype.detach = (socket: WebSocket) => {
|
||||
return detach(this, socket);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export function fit(term: any): void {
|
||||
term.resize(geometry.cols, geometry.rows);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function apply(terminalConstructor: any): void {
|
||||
terminalConstructor.prototype.proposeGeometry = function (): IGeometry {
|
||||
|
||||
@@ -20,7 +20,7 @@ export function toggleFullScreen(term: any, fullscreen: boolean): void {
|
||||
}
|
||||
|
||||
term.element.classList[fn]('fullscreen');
|
||||
};
|
||||
}
|
||||
|
||||
export function apply(terminalConstructor: any): void {
|
||||
terminalConstructor.prototype.toggleFullScreen = function (fullscreen: boolean): void {
|
||||
|
||||
@@ -17,7 +17,7 @@ export function findNext(terminal: any, term: string): boolean {
|
||||
terminal.searchHelper = new SearchHelper(terminal);
|
||||
}
|
||||
return (<SearchHelper>terminal.searchHelper).findNext(term);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the previous instance of the term, then scroll to and select it. If it
|
||||
@@ -30,7 +30,7 @@ export function findPrevious(terminal: any, term: string): boolean {
|
||||
terminal.searchHelper = new SearchHelper(terminal);
|
||||
}
|
||||
return (<SearchHelper>terminal.searchHelper).findPrevious(term);
|
||||
};
|
||||
}
|
||||
|
||||
export function apply(terminalConstructor: any): void {
|
||||
terminalConstructor.prototype.findNext = function(term: any): boolean {
|
||||
|
||||
@@ -63,7 +63,7 @@ export function terminadoAttach(term: any, socket: WebSocket, bidirectional: boo
|
||||
|
||||
socket.addEventListener('close', term.terminadoDetach.bind(term, socket));
|
||||
socket.addEventListener('error', term.terminadoDetach.bind(term, socket));
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Detaches the given terminal from the given socket
|
||||
@@ -82,7 +82,7 @@ export function terminadoDetach(term: any, socket: WebSocket): void {
|
||||
}
|
||||
|
||||
delete term.socket;
|
||||
};
|
||||
}
|
||||
|
||||
export function apply(terminalConstructor: any): void {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user