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); }