aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-30 17:10:32 -0400
committerbobzel <zzzman@gmail.com>2021-09-30 17:10:32 -0400
commit24014ab70a7ef8294239addbea21ced76861b435 (patch)
tree57dc0b637c4ddadca593d16bf1475fc491f605d1
parentc457efd3d57359c285bd00a65c9fdce7a27e27f6 (diff)
fixed warning
-rw-r--r--src/client/util/DragManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 858f67273..f5704d2bf 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -365,7 +365,7 @@ export namespace DragManager {
const dragElements = eles.map(ele => {
if (!ele.parentNode) dragDiv.appendChild(ele);
const dragElement = ele.parentNode === dragDiv ? ele : ele.cloneNode(true) as HTMLElement;
- let children = Array.from(dragElement.children);
+ const children = Array.from(dragElement.children);
while (children.length) { // need to replace all the maker node reference ids with new unique ids. otherwise, the clone nodes will reference the original nodes which are all hidden during the drag
const next = children.pop();
next && children.push(...Array.from(next.children));