From 1f15793cd594f533715f96ba90310dbc4a502c51 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 21 May 2025 13:17:50 -0400 Subject: fixup! buildTabbedChartUi(): Simplify needlessly complex code --- jarmon/jarmon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 3a3de6a..657d094 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -1259,7 +1259,10 @@ jarmon.buildTabbedChartUi = function ($chartTemplate, chartRecipes, // XXX: Hack to give the tab just enough time to become visible // so that Flot can calculate chart dimensions. window.clearTimeout(cc.t); - cc.t = window.setTimeout(cc.update(), 100); + cc.t = window.setTimeout( + function() { + cc.update(); + }, 100); } ); -- cgit v1.2.3-2-g168b