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

Function onSpill

plugins/OnSpill/OnSpill.js:32–48  ·  view source on GitHub ↗
({ dragEl, putSortable })

Source from the content-addressed store, hash-verified

30 this.startIndex = oldDraggableIndex;
31 },
32 onSpill({ dragEl, putSortable }) {
33 this.sortable.captureAnimationState();
34 if (putSortable) {
35 putSortable.captureAnimationState();
36 }
37 let nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
38
39 if (nextSibling) {
40 this.sortable.el.insertBefore(dragEl, nextSibling);
41 } else {
42 this.sortable.el.appendChild(dragEl);
43 }
44 this.sortable.animateAll();
45 if (putSortable) {
46 putSortable.animateAll();
47 }
48 },
49 drop
50};
51

Callers

nothing calls this directly

Calls 1

getChildFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…