Fix some more JSHint issues

This commit is contained in:
Tom Hughes 2015-02-24 00:30:25 +00:00
parent bd2e999756
commit 6d124f8012
6 changed files with 20 additions and 16 deletions

View file

@ -87,9 +87,10 @@ OSM.Query = function(map) {
});
} else {
var prefixes = I18n.t("geocoder.search_osm_nominatim.prefix");
var key, value;
for (var key in tags) {
var value = tags[key];
for (key in tags) {
value = tags[key];
if (prefixes[key]) {
if (prefixes[key][value]) {
@ -98,8 +99,8 @@ OSM.Query = function(map) {
}
}
for (var key in tags) {
var value = tags[key];
for (key in tags) {
value = tags[key];
if (prefixes[key]) {
var first = value.substr(0, 1).toUpperCase(),