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

Function clone

plugins/MultiDrag/MultiDrag.js:99–109  ·  view source on GitHub ↗
({ sortable, rootEl, dispatchSortableEvent, cancel })

Source from the content-addressed store, hash-verified

97 },
98
99 clone({ sortable, rootEl, dispatchSortableEvent, cancel }) {
100 if (!this.isMultiDrag) return;
101 if (!this.options.removeCloneOnHide) {
102 if (multiDragElements.length && multiDragSortable === sortable) {
103 insertMultiDragClones(true, rootEl);
104 dispatchSortableEvent('clone');
105
106 cancel();
107 }
108 }
109 },
110
111 showClone({ cloneNowShown, rootEl, cancel }) {
112 if (!this.isMultiDrag) return;

Callers 1

setupCloneFunction · 0.90

Calls 2

dispatchSortableEventFunction · 0.85
insertMultiDragClonesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…