From 49d62721d8c8f7de5b576658085eda99ed87be94 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Wed, 30 Jan 2019 16:10:01 -0500 Subject: [PATCH] Fix background layer UI bugs Add semicolon --- modules/ui/background.js | 8 ++++---- modules/validations/crossing_ways.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/ui/background.js b/modules/ui/background.js index 91a5e8300..0f1f784be 100644 --- a/modules/ui/background.js +++ b/modules/ui/background.js @@ -81,7 +81,7 @@ export function uiBackground(context) { return context.background().showsLayer(d); } - selection.selectAll('.layer') + selection.selectAll('li') .classed('active', active) .classed('switch', function(d) { return d === _previousBackground; }) .call(setTooltips) @@ -136,7 +136,7 @@ export function uiBackground(context) { .sources(context.map().extent()) .filter(filter); - var layerLinks = layerList.selectAll('li.layer') + var layerLinks = layerList.selectAll('li') .data(sources, function(d) { return d.name(); }); layerLinks.exit() @@ -181,9 +181,9 @@ export function uiBackground(context) { .text(function(d) { return d.name(); }); - layerList.selectAll('li.layer') + layerList.selectAll('li') .sort(sortSources) - .style('display', layerList.selectAll('li.layer').data().length > 0 ? 'block' : 'none'); + .style('display', layerList.selectAll('li').data().length > 0 ? 'block' : 'none'); layerList .call(updateLayerSelections); diff --git a/modules/validations/crossing_ways.js b/modules/validations/crossing_ways.js index 885a6d3ef..d462c3555 100644 --- a/modules/validations/crossing_ways.js +++ b/modules/validations/crossing_ways.js @@ -178,7 +178,7 @@ export function validationHighwayCrossingOtherWays(context) { if (hasTag(entity1.tags, 'bridge') && hasTag(entity2.tags, 'bridge')) return false; if (highwaysDisallowingFords.has(entity1.tags.highway) || highwaysDisallowingFords.has(entity2.tags.highway)) { - return false + return false; } return true; }