Remove unused second fetcher parameter

This commit is contained in:
John Firebaugh
2013-06-21 14:30:30 -07:00
parent 153c34115e
commit c8da4851e1
6 changed files with 9 additions and 9 deletions

View File

@@ -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());
}));
}

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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(),

View File

@@ -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