Skip to content

Commit

Permalink
#489: * Fixed 'clone'
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Jul 28, 2015
1 parent d1069a9 commit 304c04f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@

target = _closest(evt.target, options.draggable, el);
dragRect = dragEl.getBoundingClientRect();

parentEl = target && target.parentNode; // actualization

if (revert) {
_cloneHide(true);
Expand Down Expand Up @@ -725,6 +725,7 @@

if (rootEl !== parentEl) {
newIndex = _index(dragEl);

if (newIndex != -1) {
// drag from one list and drop into another
_dispatchEvent(null, parentEl, 'sort', dragEl, rootEl, oldIndex, newIndex);
Expand Down Expand Up @@ -760,7 +761,7 @@
this.save();
}
}

// Nulling
rootEl =
dragEl =
Expand Down Expand Up @@ -1185,7 +1186,7 @@
Sortable.create = function (el, options) {
return new Sortable(el, options);
};


// Export
Sortable.version = '1.2.2';
Expand Down
Loading

0 comments on commit 304c04f

Please sign in to comment.