From 347e721025e560853ce2cb917e3893b806cbd00f Mon Sep 17 00:00:00 2001 From: Johannes Weskamm Date: Mon, 21 Jan 2019 09:33:29 +0100 Subject: [PATCH] Fixup prop evaluation --- src/ol/control/ScaleLine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/ScaleLine.js b/src/ol/control/ScaleLine.js index 75eb5af9f5..76509844b9 100644 --- a/src/ol/control/ScaleLine.js +++ b/src/ol/control/ScaleLine.js @@ -77,7 +77,7 @@ class ScaleLine extends Control { const options = opt_options ? opt_options : {}; const className = options.className !== undefined ? options.className : - options.bar !== undefined ? 'ol-scale-bar' : 'ol-scale-line'; + options.bar ? 'ol-scale-bar' : 'ol-scale-line'; super({ element: document.createElement('div'),