From 8d0f0292272672aaca930a535c7ecd2255fdeca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bl=C3=A4sta?= Date: Tue, 7 Feb 2023 11:22:59 +0100 Subject: [PATCH] Lint fix --- src/controls/legend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controls/legend.js b/src/controls/legend.js index 01f31b784..b29908d16 100644 --- a/src/controls/legend.js +++ b/src/controls/legend.js @@ -480,9 +480,9 @@ const Legend = function Legend(options = {}) { toolsEl.insertBefore(dom.html(divider.render()), toolsEl.firstChild); toolsEl.insertBefore(dom.html(button.render()), toolsEl.firstChild); } else { + const node = document.createElement('div'); if (typeof button.getValue === 'function') { - const node = document.createElement("div"); - node.classList.add("grow"); + node.classList.add('grow'); toolsEl.appendChild(node); node.appendChild(dom.html(button.render())); } else {