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

Function insertMultiDragClones

plugins/MultiDrag/MultiDrag.js:615–624  ·  view source on GitHub ↗

* Insert multi-drag clones * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted * @param {HTMLElement} rootEl

(elementsInserted, rootEl)

Source from the content-addressed store, hash-verified

613 * @param {HTMLElement} rootEl
614 */
615function insertMultiDragClones(elementsInserted, rootEl) {
616 multiDragClones.forEach((clone, i) => {
617 let target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];
618 if (target) {
619 rootEl.insertBefore(clone, target);
620 } else {
621 rootEl.appendChild(clone);
622 }
623 });
624}
625
626function removeMultiDragElements() {
627 multiDragElements.forEach(multiDragElement => {

Callers 2

cloneFunction · 0.70
showCloneFunction · 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…