mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-04 18:33:38 +00:00
Remove unused second fetcher parameter
This commit is contained in:
@@ -83,7 +83,7 @@ iD.ui.preset.address = function(field, context) {
|
||||
|
||||
street
|
||||
.call(d3.combobox()
|
||||
.fetcher(function(value, __, callback) {
|
||||
.fetcher(function(value, callback) {
|
||||
callback(getStreets());
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ iD.ui.preset.localized = function(field, context) {
|
||||
|
||||
}
|
||||
|
||||
function fetcher(value, __, cb) {
|
||||
function fetcher(value, cb) {
|
||||
var v = value.toLowerCase();
|
||||
|
||||
cb(iD.data.wikipedia.filter(function(d) {
|
||||
|
||||
@@ -8,7 +8,7 @@ iD.ui.preset.wikipedia = function(field, context) {
|
||||
function i(selection) {
|
||||
|
||||
var langcombo = d3.combobox()
|
||||
.fetcher(function(value, __, cb) {
|
||||
.fetcher(function(value, cb) {
|
||||
var v = value.toLowerCase();
|
||||
|
||||
cb(iD.data.wikipedia.filter(function(d) {
|
||||
@@ -21,7 +21,7 @@ iD.ui.preset.wikipedia = function(field, context) {
|
||||
});
|
||||
|
||||
var titlecombo = d3.combobox()
|
||||
.fetcher(function(value, __, cb) {
|
||||
.fetcher(function(value, cb) {
|
||||
|
||||
if (!value) value = context.entity(entity.id).tags.name || '';
|
||||
var searchfn = value.length > 7 ? wikipedia.search : wikipedia.suggestions;
|
||||
|
||||
@@ -129,7 +129,7 @@ iD.ui.RawMembershipEditor = function(context) {
|
||||
.attr('type', 'text')
|
||||
.attr('class', 'member-entity-input')
|
||||
.call(d3.combobox()
|
||||
.fetcher(function(value, _, callback) {
|
||||
.fetcher(function(value, callback) {
|
||||
callback(relations(value));
|
||||
})
|
||||
.on('accept', function(d) {
|
||||
|
||||
@@ -138,7 +138,7 @@ iD.ui.RawTagEditor = function(context) {
|
||||
}
|
||||
|
||||
key.call(d3.combobox()
|
||||
.fetcher(function(value, __, callback) {
|
||||
.fetcher(function(value, callback) {
|
||||
taginfo.keys({
|
||||
debounce: true,
|
||||
geometry: context.geometry(id),
|
||||
@@ -149,7 +149,7 @@ iD.ui.RawTagEditor = function(context) {
|
||||
}));
|
||||
|
||||
value.call(d3.combobox()
|
||||
.fetcher(function(value, __, callback) {
|
||||
.fetcher(function(value, callback) {
|
||||
taginfo.values({
|
||||
debounce: true,
|
||||
key: key.value(),
|
||||
|
||||
@@ -2,7 +2,7 @@ d3.combobox = function() {
|
||||
var event = d3.dispatch('accept'),
|
||||
data = [];
|
||||
|
||||
var fetcher = function(val, data, cb) {
|
||||
var fetcher = function(val, cb) {
|
||||
cb(data.filter(function(d) {
|
||||
return d.title
|
||||
.toString()
|
||||
@@ -218,7 +218,7 @@ d3.combobox = function() {
|
||||
.remove();
|
||||
}
|
||||
|
||||
fetcher.apply(input, [value, data, render]);
|
||||
fetcher.apply(input, [value, render]);
|
||||
}
|
||||
|
||||
// select the choice given as d
|
||||
|
||||
Reference in New Issue
Block a user