From 21f8121351b20bd800eb5283589a35d040b017d4 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sun, 9 Nov 2014 01:31:50 +0300 Subject: [PATCH] * fixed _onDrop, II --- Sortable.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sortable.js b/Sortable.js index 7e6c502..dba2f74 100644 --- a/Sortable.js +++ b/Sortable.js @@ -471,10 +471,8 @@ evt.preventDefault(); evt.stopPropagation(); - if( ghostEl ){ - cloneEl.parentNode.removeChild(cloneEl); - ghostEl.parentNode.removeChild(ghostEl); - } + cloneEl.parentNode.removeChild(cloneEl); + ghostEl && ghostEl.parentNode.removeChild(ghostEl); if( dragEl ){ _disableDraggable(dragEl);