From 778ee0b202f7d2396f945420896b312c01219725 Mon Sep 17 00:00:00 2001 From: "E.T.Cook" Date: Wed, 28 Jan 2015 00:06:55 -0600 Subject: [PATCH] Deep copy object to avoid unwanted referencing In relation to https://github.com/RubaXa/Sortable/issues/237 --- ng-sortable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ng-sortable.js b/ng-sortable.js index 8d310c410..3a2162f0b 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -77,6 +77,7 @@ if (evt.clone) { evt.from.removeChild(evt.clone); + removed = angular.copy(removed); } else { prevItems.splice(oldIndex, 1);