mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Remove dom.getElementsByTagName (#157163)
This was just calling document.getElementsByTagName
This commit is contained in:
@@ -1155,10 +1155,6 @@ export function removeTabIndexAndUpdateFocus(node: HTMLElement): void {
|
||||
node.removeAttribute('tabindex');
|
||||
}
|
||||
|
||||
export function getElementsByTagName(tag: string): HTMLElement[] {
|
||||
return Array.prototype.slice.call(document.getElementsByTagName(tag), 0);
|
||||
}
|
||||
|
||||
export function finalHandler<T extends Event>(fn: (event: T) => any): (event: T) => any {
|
||||
return e => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user