summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-08-13 23:21:44 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2017-08-13 23:21:49 -0600
commit1ca452bcc8566ac3b987f0da6697a994fc82dccd (patch)
tree7101443d95a78c8f613d897ccaa9cabae47dd03e
parented80b84cd522760905f6b06bbe46322f51e41420 (diff)
buildTabedChartUi(): make some of the code a bit more readable
-rw-r--r--jarmon/jarmon.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index 5867274..38a49cb 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -1229,8 +1229,10 @@ jarmon.buildTabbedChartUi = function ($chartTemplate, chartRecipes,
{chart: chart},
function(e) {
var chart = e.data.chart;
- new jarmon.ChartEditor(
- chart.template.find('.graph-legend'), chart).draw();
+ var editor = new jarmon.ChartEditor(
+ chart.template.find('.graph-legend'),
+ chart);
+ editor.draw();
}
);