From 2073491aa7df776582585816d43902cb4bd1a298 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sun, 9 Nov 2014 01:59:31 +0300 Subject: [PATCH] * start event --- Sortable.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Sortable.js b/Sortable.js index dba2f74..09a210f 100644 --- a/Sortable.js +++ b/Sortable.js @@ -202,10 +202,6 @@ nextEl = dragEl.nextSibling; activeGroup = this.options.group; - cloneEl = dragEl.cloneNode(true); - _css(cloneEl, 'display', 'none'); - rootEl.insertBefore(cloneEl, dragEl); - dragEl.draggable = true; // Disable "draggable" @@ -244,6 +240,11 @@ _dispatchEvent(dragEl, 'start'); + + + cloneEl = dragEl.cloneNode(true); + _css(cloneEl, 'display', 'none'); + rootEl.insertBefore(cloneEl, dragEl); } },