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

Function changed

Sortable.js:1726–1737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1724
1725 // Call when dragEl has been inserted
1726 function changed() {
1727 newIndex = index(dragEl);
1728 newDraggableIndex = index(dragEl, options.draggable);
1729 _dispatchEvent({
1730 sortable: _this,
1731 name: 'change',
1732 toEl: el,
1733 newIndex: newIndex,
1734 newDraggableIndex: newDraggableIndex,
1735 originalEvent: evt
1736 });
1737 }
1738 if (evt.preventDefault !== void 0) {
1739 evt.cancelable && evt.preventDefault();
1740 }

Callers 3

Sortable.jsFile · 0.70
SwapPluginFunction · 0.70
dragOverValidFunction · 0.50

Calls 2

indexFunction · 0.70
_dispatchEventFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…