Don't write unsavable changes to localStorage (closes #2705)

This commit is contained in:
Bryan Housel
2015-06-20 12:21:29 -04:00
parent 60fdb60a8a
commit 728036be51
2 changed files with 8 additions and 1 deletions

View File

@@ -198,7 +198,7 @@ iD.History = function(context) {
},
toJSON: function() {
if (stack.length <= 1) return;
if (!this.hasChanges()) return;
var allEntities = {},
baseEntities = {},