Browse Source

Rename insertAfter into willInsertAfter

pull/1084/head
desmaisons_david 8 years ago
parent
commit
0cb1fe82f6
  1. 4
      Sortable.js

4
Sortable.js

@ -1249,7 +1249,7 @@
} }
function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvt, insertAfter) { function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvt, willInsertAfter) {
var evt, var evt,
sortable = fromEl[expando], sortable = fromEl[expando],
onMoveFn = sortable.options.onMove, onMoveFn = sortable.options.onMove,
@ -1264,7 +1264,7 @@
evt.draggedRect = dragRect; evt.draggedRect = dragRect;
evt.related = targetEl || toEl; evt.related = targetEl || toEl;
evt.relatedRect = targetRect || toEl.getBoundingClientRect(); evt.relatedRect = targetRect || toEl.getBoundingClientRect();
evt.insertAfter = insertAfter; evt.willInsertAfter = willInsertAfter;
fromEl.dispatchEvent(evt); fromEl.dispatchEvent(evt);

Loading…
Cancel
Save