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

Function changed

modular/sortable.core.esm.js:1720–1731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

SwapPluginFunction · 0.70

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…