From 0cb1fe82f603a6a30b2fe254e183753075f9cfc6 Mon Sep 17 00:00:00 2001 From: desmaisons_david Date: Thu, 25 May 2017 04:58:43 -0300 Subject: [PATCH] Rename insertAfter into willInsertAfter --- Sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index 2d259e0..8626002 100644 --- a/Sortable.js +++ b/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, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, @@ -1264,7 +1264,7 @@ evt.draggedRect = dragRect; evt.related = targetEl || toEl; evt.relatedRect = targetRect || toEl.getBoundingClientRect(); - evt.insertAfter = insertAfter; + evt.willInsertAfter = willInsertAfter; fromEl.dispatchEvent(evt);