MCPcopy Index your code
hub / github.com/SortableJS/Sortable / insertMultiDragElements

Function insertMultiDragElements

plugins/MultiDrag/MultiDrag.js:599–608  ·  view source on GitHub ↗
(clonesInserted, rootEl)

Source from the content-addressed store, hash-verified

597}
598
599function insertMultiDragElements(clonesInserted, rootEl) {
600 multiDragElements.forEach((multiDragElement, i) => {
601 let target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];
602 if (target) {
603 rootEl.insertBefore(multiDragElement, target);
604 } else {
605 rootEl.appendChild(multiDragElement);
606 }
607 });
608}
609
610/**
611 * Insert multi-drag clones

Callers 1

revertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…