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

Function pluginEvent

src/Sortable.js:43–80  ·  view source on GitHub ↗
(eventName, sortable, { evt: originalEvent, ...data } = {})

Source from the content-addressed store, hash-verified

41
42
43let pluginEvent = function(eventName, sortable, { evt: originalEvent, ...data } = {}) {
44 PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, {
45 dragEl,
46 parentEl,
47 ghostEl,
48 rootEl,
49 nextEl,
50 lastDownEl,
51 cloneEl,
52 cloneHidden,
53 dragStarted: moved,
54 putSortable,
55 activeSortable: Sortable.active,
56 originalEvent,
57
58 oldIndex,
59 oldDraggableIndex,
60 newIndex,
61 newDraggableIndex,
62
63 hideGhostForTarget: _hideGhostForTarget,
64 unhideGhostForTarget: _unhideGhostForTarget,
65
66
67 cloneNowHidden() {
68 cloneHidden = true;
69 },
70 cloneNowShown() {
71 cloneHidden = false;
72 },
73
74 dispatchSortableEvent(name) {
75 _dispatchEvent({ sortable, name, originalEvent });
76 },
77
78 ...data
79 });
80};
81
82function _dispatchEvent(info) {
83 dispatchEvent({

Callers 2

Sortable.jsFile · 0.70
dragOverEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…