Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Travis commit : build 176
Browse files Browse the repository at this point in the history
  • Loading branch information
AngularUI (via TravisCI) committed Feb 23, 2014
1 parent 1cfa392 commit 143cf21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ui-sortable",
"version": "0.12.0",
"version": "0.12.1",
"main": "./sortable.js",
"dependencies": {
"angular": "~1.2.x",
Expand Down
8 changes: 3 additions & 5 deletions sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ angular.module('ui.sortable', []).value('uiSortableConfig', {}).directive('uiSor
// the start and stop of repeat sections and sortable doesn't
// respect their order (even if we cancel, the order of the
// comments are still messed up).
savedNodes.detach();
if (element.sortable('option', 'helper') === 'clone') {
// first detach all the savedNodes and then restore all of them
// except .ui-sortable-helper element (which is placed last).
// That way it will be garbage collected.
// restore all the savedNodes except .ui-sortable-helper element
// (which is placed last). That way it will be garbage collected.
savedNodes = savedNodes.not(savedNodes.last());
}
savedNodes.appendTo(element);
Expand All @@ -129,7 +127,7 @@ angular.module('ui.sortable', []).value('uiSortableConfig', {}).directive('uiSor
// if the item was not moved, then restore the elements
// so that the ngRepeat's comment are correct.
if ((!('dropindex' in ui.item.sortable) || ui.item.sortable.isCanceled()) && element.sortable('option', 'helper') !== 'clone') {
savedNodes.detach().appendTo(element);
savedNodes.appendTo(element);
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 143cf21

Please sign in to comment.