summaryrefslogtreecommitdiff
path: root/src/client/scripts/contains.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/scripts/contains.ts')
-rw-r--r--src/client/scripts/contains.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/client/scripts/contains.ts b/src/client/scripts/contains.ts
deleted file mode 100644
index 770bda63bb..0000000000
--- a/src/client/scripts/contains.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export default (parent, child, checkSame = true) => {
- if (checkSame && parent === child) return true;
- let node = child.parentNode;
- while (node) {
- if (node == parent) return true;
- node = node.parentNode;
- }
- return false;
-};