wip
This commit is contained in:
parent
3a39a36bed
commit
2a3a5d4b50
35 changed files with 402 additions and 367 deletions
8
src/web/app/common/scripts/contains.js
Normal file
8
src/web/app/common/scripts/contains.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
module.exports = function(parent, child) {
|
||||
let node = child.parentNode;
|
||||
while (node) {
|
||||
if (node == parent) return true;
|
||||
node = node.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue