mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-20 18:13:30 +00:00
Remove unused parameter
This commit is contained in:
@@ -13,7 +13,7 @@ iD.ui.preset = function(context, entity, preset) {
|
||||
.on('close', event.close)
|
||||
.on('change', event.change);
|
||||
|
||||
field.reference = iD.ui.TagReference(entity, {key: field.key});
|
||||
field.reference = iD.ui.TagReference({key: field.key});
|
||||
|
||||
if (field.type === 'address' ||
|
||||
field.type === 'wikipedia' ||
|
||||
|
||||
@@ -198,7 +198,7 @@ iD.ui.PresetList = function(context, entity) {
|
||||
};
|
||||
|
||||
item.preset = preset;
|
||||
item.reference = iD.ui.TagReference(null, preset.reference());
|
||||
item.reference = iD.ui.TagReference(preset.reference());
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ iD.ui.RawTagEditor = function(context, entity) {
|
||||
}
|
||||
|
||||
tags.forEach(function(tag) {
|
||||
tag.reference = iD.ui.TagReference(entity, {key: tag.key});
|
||||
tag.reference = iD.ui.TagReference({key: tag.key});
|
||||
});
|
||||
|
||||
var li = list.html('')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
iD.ui.TagReference = function(entity, tag) {
|
||||
iD.ui.TagReference = function(tag) {
|
||||
var tagReference = {},
|
||||
taginfo = iD.taginfo(),
|
||||
button, body,
|
||||
|
||||
Reference in New Issue
Block a user