mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Remove elastic tag when roads and areas are complete
This commit is contained in:
@@ -30,7 +30,8 @@ iD.modes.DrawArea = function(way_id) {
|
||||
mode.history.replace(iD.actions.AddWayNode(way,
|
||||
mode.history.graph().entity(way.nodes[0])));
|
||||
way = mode.history.graph().entity(way.id);
|
||||
mode.history.perform(iD.actions.ChangeEntityTags(way, _.omit(way.tags, 'elastic')));
|
||||
way.tags = _.omit(way.tags, 'elastic');
|
||||
mode.history.perform(iD.actions.ChangeEntityTags(way, way.tags));
|
||||
|
||||
// End by clicking on own tail
|
||||
return mode.controller.enter(iD.modes.Select(way));
|
||||
|
||||
@@ -40,9 +40,9 @@ iD.modes.DrawRoad = function(way_id, direction) {
|
||||
mode.history.graph().entity(lastNode), index));
|
||||
}
|
||||
|
||||
way.tags = _.omit(way.tags, 'elastic');
|
||||
mode.history.perform(iD.actions.ChangeEntityTags(
|
||||
way,
|
||||
_.omit(way.tags, 'elastic')));
|
||||
way, way.tags));
|
||||
|
||||
// End by clicking on own tail
|
||||
return mode.controller.enter(iD.modes.Select(way));
|
||||
|
||||
Reference in New Issue
Block a user