From 72be2e91aec387a23cf84fb9ec831a906df4ae7c Mon Sep 17 00:00:00 2001 From: RubaXa Date: Thu, 7 May 2015 23:28:28 +0300 Subject: [PATCH] #376: * fixed 'evt.target' --- Sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index c4ab166..cf0b5f0 100644 --- a/Sortable.js +++ b/Sortable.js @@ -991,11 +991,11 @@ evt.oldIndex = startIndex; evt.newIndex = newIndex; + rootEl.dispatchEvent(evt); + if (options[onName]) { options[onName].call(sortable, evt); } - - rootEl.dispatchEvent(evt); }