summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jarmon/jarmon.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index e3b9768..7be4f16 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -1227,18 +1227,12 @@ jarmon.buildTabbedChartUi = function ($chartTemplate, chartRecipes,
var cc = new jarmon.ChartCoordinator($controlPanelTemplate, charts);
// Update charts when tab is clicked
- ti.$tpl.find(".css-tabs:first").bind(
- 'click',
- {'cc': cc},
+ ti.$tpl.find(".css-tabs:first").bind('click',
function(e) {
- var cc = e.data.cc;
// 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(
- function() {
- cc.update();
- }, 100);
+ cc.t = window.setTimeout(cc.update(), 100);
}
);