From 874b94aaeb51ffa80f19b7c9535fbc84af32609e Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 3 May 2022 14:18:31 -0700 Subject: web: bloody JS scopeā€¦ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/static/dartboat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/static') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 99513e2..94337be 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -90,7 +90,7 @@ function drawVisit(visit_no, p1_pts, p1_rem, p2_pts, p2_rem, p2_darts) { function svgAppendElemv(sel, elemc, elemv, off_name, off_n_attrs, off_attr_names, off_attr_vals, off_content) { - target = $(UTF8ToString(sel)); + const target = $(UTF8ToString(sel)); for (let ptr = elemv; ptr < elemv + 4*elemc; ptr += 4) { const struct = HEAP32[ptr>>2]; -- cgit v1.2.3-70-g09d2