From c8da4851e1269e400081fb5cb187c38cffe68ec7 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 21 Jun 2013 14:30:30 -0700 Subject: [PATCH] Remove unused second fetcher parameter --- js/id/ui/preset/address.js | 2 +- js/id/ui/preset/localized.js | 2 +- js/id/ui/preset/wikipedia.js | 4 ++-- js/id/ui/raw_membership_editor.js | 2 +- js/id/ui/raw_tag_editor.js | 4 ++-- js/lib/d3.combobox.js | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/js/id/ui/preset/address.js b/js/id/ui/preset/address.js index 8feee9c2b..1c471cbcb 100644 --- a/js/id/ui/preset/address.js +++ b/js/id/ui/preset/address.js @@ -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()); })); } diff --git a/js/id/ui/preset/localized.js b/js/id/ui/preset/localized.js index 2b5f1943a..66cae647f 100644 --- a/js/id/ui/preset/localized.js +++ b/js/id/ui/preset/localized.js @@ -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) { diff --git a/js/id/ui/preset/wikipedia.js b/js/id/ui/preset/wikipedia.js index a7f964370..13a241293 100644 --- a/js/id/ui/preset/wikipedia.js +++ b/js/id/ui/preset/wikipedia.js @@ -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; diff --git a/js/id/ui/raw_membership_editor.js b/js/id/ui/raw_membership_editor.js index efe4ebd64..24a2e9ab5 100644 --- a/js/id/ui/raw_membership_editor.js +++ b/js/id/ui/raw_membership_editor.js @@ -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) { diff --git a/js/id/ui/raw_tag_editor.js b/js/id/ui/raw_tag_editor.js index 4970c2f9d..92fdc45be 100644 --- a/js/id/ui/raw_tag_editor.js +++ b/js/id/ui/raw_tag_editor.js @@ -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(), diff --git a/js/lib/d3.combobox.js b/js/lib/d3.combobox.js index 75fa9b03d..94b9eb01b 100644 --- a/js/lib/d3.combobox.js +++ b/js/lib/d3.combobox.js @@ -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