Save history more frequently (#1345)

This commit is contained in:
John Firebaugh
2013-08-14 16:50:10 -07:00
parent 2efafa087b
commit 34fdc8de42
2 changed files with 4 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ iD.modes.Browse = function(context) {
iD.modes.DragNode(context).behavior];
mode.enter = function() {
context.history().save();
behaviors.forEach(function(behavior) {
context.install(behavior);
});

View File

@@ -70,6 +70,8 @@ iD.modes.Select = function(context, selectedIDs) {
};
mode.enter = function() {
context.history().save();
behaviors.forEach(function(behavior) {
context.install(behavior);
});