Browse Source

Deep copy object to avoid unwanted referencing

In relation to https://github.com/RubaXa/Sortable/issues/237
pull/245/head
E.T.Cook 10 years ago
parent
commit
778ee0b202
  1. 1
      ng-sortable.js

1
ng-sortable.js

@ -77,6 +77,7 @@
if (evt.clone) {
evt.from.removeChild(evt.clone);
removed = angular.copy(removed);
}
else {
prevItems.splice(oldIndex, 1);

Loading…
Cancel
Save