From ec63339ae5258509cf7a8829d4dd79519948c256 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 28 Oct 2018 22:38:20 +0100 Subject: Add missing variable declarations in JavaScript code This fixes errors reported by LGTM. Signed-off-by: Stefan Weil --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/htdocs') diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index f4bf0f40fa..c27cc8264e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -2071,7 +2071,7 @@ function cbi_dropdown_init(sb) { cbi_dropdown_init.prototype = CBIDropdown; function cbi_update_table(table, data, placeholder) { - target = isElem(table) ? table : document.querySelector(table); + var target = isElem(table) ? table : document.querySelector(table); if (!isElem(target)) return; -- cgit v1.2.3