From 7c458513f3a0903e1b3b3ffaa8f213c00469200a Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 2 Dec 2014 22:14:31 -0500 Subject: [PATCH] Don't pass extra arguments from map to Entity initializer fixes #2465 --- js/id/core/history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/id/core/history.js b/js/id/core/history.js index 2ca81bc8b..87c9b0075 100644 --- a/js/id/core/history.js +++ b/js/id/core/history.js @@ -234,7 +234,9 @@ iD.History = function(context) { // this merges originals for changed entities into the base of // the stack even if the current stack doesn't have them (for // example when iD has been restarted in a different region) - var baseEntities = h.baseEntities.map(iD.Entity); + var baseEntities = h.baseEntities.map(function(entity) { + return iD.Entity(entity); + }); stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph')); tree.rebase(baseEntities); }