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

Function pluginEvent

modular/sortable.core.esm.js:816–853  ·  view source on GitHub ↗
(eventName, sortable)

Source from the content-addressed store, hash-verified

814
815var _excluded = ["evt"];
816var pluginEvent = function pluginEvent(eventName, sortable) {
817 var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
818 originalEvent = _ref.evt,
819 data = _objectWithoutProperties(_ref, _excluded);
820 PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
821 dragEl: dragEl,
822 parentEl: parentEl,
823 ghostEl: ghostEl,
824 rootEl: rootEl,
825 nextEl: nextEl,
826 lastDownEl: lastDownEl,
827 cloneEl: cloneEl,
828 cloneHidden: cloneHidden,
829 dragStarted: moved,
830 putSortable: putSortable,
831 activeSortable: Sortable.active,
832 originalEvent: originalEvent,
833 oldIndex: oldIndex,
834 oldDraggableIndex: oldDraggableIndex,
835 newIndex: newIndex,
836 newDraggableIndex: newDraggableIndex,
837 hideGhostForTarget: _hideGhostForTarget,
838 unhideGhostForTarget: _unhideGhostForTarget,
839 cloneNowHidden: function cloneNowHidden() {
840 cloneHidden = true;
841 },
842 cloneNowShown: function cloneNowShown() {
843 cloneHidden = false;
844 },
845 dispatchSortableEvent: function dispatchSortableEvent(name) {
846 _dispatchEvent({
847 sortable: sortable,
848 name: name,
849 originalEvent: originalEvent
850 });
851 }
852 }, data));
853};
854function _dispatchEvent(info) {
855 dispatchEvent(_objectSpread2({
856 putSortable: putSortable,

Callers 2

dragOverEventFunction · 0.70

Calls 3

_objectWithoutPropertiesFunction · 0.70
_objectSpread2Function · 0.70
_dispatchEventFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…