mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 06:55:46 +00:00
Remove unused parameter
This commit is contained in:
@@ -77,7 +77,7 @@ iD.modes.AddArea = function() {
|
||||
.on('startFromMidpoint', startFromMidpoint);
|
||||
|
||||
mode.map.surface.call(behavior);
|
||||
mode.map.tail(t('modes.add_area.tail'), true);
|
||||
mode.map.tail(t('modes.add_area.tail'));
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
|
||||
@@ -84,7 +84,7 @@ iD.modes.AddLine = function() {
|
||||
.on('startFromMidpoint', startFromMidpoint);
|
||||
|
||||
mode.map.surface.call(behavior);
|
||||
mode.map.tail(t('modes.add_line.tail'), true);
|
||||
mode.map.tail(t('modes.add_line.tail'));
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
|
||||
@@ -44,7 +44,7 @@ iD.modes.AddPoint = function() {
|
||||
.on('finish', cancel);
|
||||
|
||||
mode.map.surface.call(behavior);
|
||||
mode.map.tail(t('modes.add_point.tail'), true);
|
||||
mode.map.tail(t('modes.add_point.tail'));
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
|
||||
@@ -24,7 +24,7 @@ iD.modes.DrawArea = function(wayId, baseGraph) {
|
||||
};
|
||||
|
||||
mode.map.surface.call(behavior);
|
||||
mode.map.tail(t('modes.draw_area.tail'), true);
|
||||
mode.map.tail(t('modes.draw_area.tail'));
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
|
||||
@@ -24,7 +24,7 @@ iD.modes.DrawLine = function(wayId, direction, baseGraph) {
|
||||
};
|
||||
|
||||
mode.map.surface.call(behavior);
|
||||
mode.map.tail(t('modes.draw_line.tail'), true);
|
||||
mode.map.tail(t('modes.draw_line.tail'));
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
|
||||
@@ -361,7 +361,7 @@ iD.Map = function() {
|
||||
};
|
||||
|
||||
var usedTails = {};
|
||||
map.tail = function (_, once) {
|
||||
map.tail = function (_) {
|
||||
if (!_ || usedTails[_] === undefined) {
|
||||
tail.text(_);
|
||||
usedTails[_] = true;
|
||||
|
||||
Reference in New Issue
Block a user