From d497e64ca9a52a49fa0065c7f7ed8084f8a9f513 Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Wed, 22 Jun 2016 10:48:14 +0300 Subject: [PATCH] #864: + check Sortable.active in nulling method --- Sortable.js | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Sortable.js b/Sortable.js index d271999..66b489c 100644 --- a/Sortable.js +++ b/Sortable.js @@ -815,32 +815,34 @@ } } + this._nulling(); }, _nulling: function() { - // Nulling - rootEl = - dragEl = - parentEl = - ghostEl = - nextEl = - cloneEl = + if (Sortable.active === this) { + rootEl = + dragEl = + parentEl = + ghostEl = + nextEl = + cloneEl = - scrollEl = - scrollParentEl = + scrollEl = + scrollParentEl = - tapEvt = - touchEvt = + tapEvt = + touchEvt = - moved = - newIndex = + moved = + newIndex = - lastEl = - lastCSS = + lastEl = + lastCSS = - activeGroup = - Sortable.active = null; + activeGroup = + Sortable.active = null; + } }, handleEvent: function (/**Event*/evt) {