mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Mode change code in editOff no longer needed..
(because iD.modes.Select listens for drawn event and knows to exit itself)
This commit is contained in:
@@ -138,14 +138,8 @@ iD.Map = function(context) {
|
||||
}
|
||||
|
||||
function editOff() {
|
||||
var mode = context.mode();
|
||||
|
||||
context.features().resetStats();
|
||||
surface.selectAll('.layer *').remove();
|
||||
if (!(mode && mode.id === 'browse')) {
|
||||
context.enter(iD.modes.Browse(context));
|
||||
}
|
||||
|
||||
dispatch.drawn({full: true});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user