Skip to content

Commit

Permalink
Merge pull request #245 from etcook/dev
Browse files Browse the repository at this point in the history
Deep copy object to avoid unwanted referencing
  • Loading branch information
RubaXa committed Jan 28, 2015
2 parents dce3eb2 + 778ee0b commit fff7711
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ng-sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@

if (evt.clone) {
evt.from.removeChild(evt.clone);
removed = angular.copy(removed);
}
else {
prevItems.splice(oldIndex, 1);
Expand Down

0 comments on commit fff7711

Please sign in to comment.