Remove conditional that's always true

The base graph never has any ownProperty entities.
This commit is contained in:
John Firebaugh
2014-02-25 10:03:48 -08:00
parent 53f5379479
commit f6b7acf9ed
+3 -1
View File
@@ -189,10 +189,12 @@ iD.History = function(context) {
} else {
deleted.push(id);
}
// make sure that the originals of changed or deleted entities get merged
// into the base of the stack after restoring the data from JSON.
if (id in base.graph.entities && !base.graph.entities.hasOwnProperty(id))
if (id in base.graph.entities) {
baseEntities[id] = base.graph.entities[id];
}
});
var x = {};