chore: lint files

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-11 20:28:02 +02:00
committed by Braks
parent ab18bbc7d8
commit 5560949ed1
23 changed files with 247 additions and 80 deletions
+5 -2
View File
@@ -5,8 +5,11 @@ export function hasSelector(target: Element, selector: string, node: Element): b
let current = target
do {
if (current && current.matches(selector)) return true
else if (current === node) return false
if (current && current.matches(selector)) {
return true
} else if (current === node) {
return false
}
current = current.parentElement as Element
} while (current)