Calculate nearest streets only when needed

This commit is contained in:
John Firebaugh
2013-05-31 16:18:43 -07:00
parent 3b34b35d10
commit 29e6880fc0
+4 -1
View File
@@ -82,7 +82,10 @@ iD.ui.preset.address = function(field, context) {
.on('change', change);
street
.call(d3.combobox().data(getStreets()));
.call(d3.combobox()
.fetcher(function(value, __, callback) {
callback(getStreets());
}));
}
function change() {