なんかもうめっちゃ変えた
This commit is contained in:
parent
f8dddc81e2
commit
bc9a8283c6
77 changed files with 170 additions and 165 deletions
8
src/web/app/common/scripts/contains.ts
Normal file
8
src/web/app/common/scripts/contains.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export default (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