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

Function pluginEvent

Sortable.js:822–859  ·  view source on GitHub ↗
(eventName, sortable)

Source from the content-addressed store, hash-verified

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

Callers 2

Sortable.jsFile · 0.70
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…