Remove controller.exit

This commit is contained in:
John Firebaugh
2013-01-31 16:00:02 -05:00
parent 7ea7326f92
commit 5f41b74955
4 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ iD.behavior.AddWay = function(mode) {
};
addWay.cancel = function() {
controller.exit();
controller.enter(iD.modes.Browse());
};
return d3.rebind(addWay, event, 'on');
-4
View File
@@ -19,9 +19,5 @@ iD.Controller = function(map, history) {
event.enter(mode);
};
controller.exit = function() {
controller.enter(iD.modes.Browse());
};
return d3.rebind(controller, event, 'on');
};
+1 -1
View File
@@ -32,7 +32,7 @@ iD.modes.AddPoint = function() {
}
function cancel() {
controller.exit();
controller.enter(iD.modes.Browse());
}
behavior = iD.behavior.Draw(map)
+1 -1
View File
@@ -86,7 +86,7 @@ iD.modes.Select = function(selection, initial) {
inspector
.on('changeTags', changeTags)
.on('close', function() { mode.controller.exit(); });
.on('close', function() { mode.controller.enter(iD.modes.Browse()); });
history.on('change.select', function() {
// Exit mode if selected entity gets undone