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

Function changed

src/Sortable.js:1116–1127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1114
1115 // Call when dragEl has been inserted
1116 function changed() {
1117 newIndex = index(dragEl);
1118 newDraggableIndex = index(dragEl, options.draggable);
1119 _dispatchEvent({
1120 sortable: _this,
1121 name: 'change',
1122 toEl: el,
1123 newIndex,
1124 newDraggableIndex,
1125 originalEvent: evt
1126 });
1127 }
1128
1129
1130 if (evt.preventDefault !== void 0) {

Callers 1

Sortable.jsFile · 0.70

Calls 2

indexFunction · 0.90
_dispatchEventFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…