diff --git a/index.html b/index.html index 9cf8c269f..33706d3dd 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@ + @@ -54,7 +55,6 @@ - diff --git a/js/id/actions/start_way.js b/js/id/actions/add_way.js similarity index 70% rename from js/id/actions/start_way.js rename to js/id/actions/add_way.js index 6c82e389d..4b53a8ea3 100644 --- a/js/id/actions/start_way.js +++ b/js/id/actions/add_way.js @@ -1,4 +1,4 @@ -iD.actions.StartWay = function(way) { +iD.actions.AddWay = function(way) { return function(graph) { return graph.replace(way, 'started a road'); }; diff --git a/js/id/modes/add_area.js b/js/id/modes/add_area.js index 15fe6fd84..ca81bea7e 100644 --- a/js/id/modes/add_area.js +++ b/js/id/modes/add_area.js @@ -22,7 +22,7 @@ iD.modes.AddArea = function() { node = iD.Node({loc: mode.map.mouseCoordinates()}); } - mode.history.perform(iD.actions.StartWay(way)); + mode.history.perform(iD.actions.AddWay(way)); mode.history.perform(iD.actions.AddWayNode(way, node)); mode.controller.enter(iD.modes.DrawArea(way.id)); diff --git a/js/id/modes/add_road.js b/js/id/modes/add_road.js index 8f7495b45..c731353b2 100644 --- a/js/id/modes/add_road.js +++ b/js/id/modes/add_road.js @@ -47,7 +47,7 @@ iD.modes.AddRoad = function() { } if (start) { - mode.history.perform(iD.actions.StartWay(way)); + mode.history.perform(iD.actions.AddWay(way)); mode.history.perform(iD.actions.AddWayNode(way, node)); } diff --git a/test/index.html b/test/index.html index f5234875f..dbfd7cba6 100644 --- a/test/index.html +++ b/test/index.html @@ -45,6 +45,7 @@ + @@ -54,7 +55,6 @@ -