Save originals of parent entities to localstorage

This prevents strange things from happening when a way is moved,
(affecting only the childnodes but not the way).
This commit is contained in:
Bryan Housel
2015-02-28 22:52:21 -05:00
parent 2b3dfef5e7
commit 2aae57d361
+6
View File
@@ -199,6 +199,12 @@ iD.History = function(context) {
if (id in base.graph.entities) {
baseEntities[id] = base.graph.entities[id];
}
// get originals of parent entities too
_.forEach(base.graph._parentWays[id], function(parentId) {
if (parentId in base.graph.entities) {
baseEntities[parentId] = base.graph.entities[parentId];
}
});
});
var x = {};