整理した
This commit is contained in:
parent
8a279a4656
commit
cf33e483f7
552 changed files with 360 additions and 1311 deletions
8
src/client/app/common/scripts/contains.ts
Normal file
8
src/client/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