mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
remove removeNode, https://github.com/microsoft/vscode/issues/103454#issuecomment-695136569
This commit is contained in:
@@ -22,15 +22,6 @@ export function clearNode(node: HTMLElement): void {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use `node.remove()` instead
|
||||
*/
|
||||
export function removeNode(node: HTMLElement): void {
|
||||
if (node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
}
|
||||
|
||||
export function isInDOM(node: Node | null): boolean {
|
||||
while (node) {
|
||||
if (node === document.body) {
|
||||
|
||||
Reference in New Issue
Block a user