Fixup prop evaluation

This commit is contained in:
Johannes Weskamm
2019-01-21 09:33:29 +01:00
parent d4c14da4b5
commit 347e721025

View File

@@ -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'),