Remove some deprecated code in ./src/vs/base #103454

This commit is contained in:
Benjamin Pasero
2020-09-22 12:59:32 +02:00
parent 4b9c60bb9a
commit 1d98292df4
2 changed files with 14 additions and 14 deletions

View File

@@ -695,13 +695,13 @@ export function isAncestor(testChild: Node | null, testAncestor: Node | null): b
export function findParentWithClass(node: HTMLElement, clazz: string, stopAtClazzOrNode?: string | HTMLElement): HTMLElement | null {
while (node && node.nodeType === node.ELEMENT_NODE) {
if (hasClass(node, clazz)) {
if (node.classList.contains(clazz)) {
return node;
}
if (stopAtClazzOrNode) {
if (typeof stopAtClazzOrNode === 'string') {
if (hasClass(node, stopAtClazzOrNode)) {
if (node.classList.contains(stopAtClazzOrNode)) {
return null;
}
} else {