Commit fcc54cc7 authored by nextime's avatar nextime

Fix a memory leak in jqplot

parent 74c0cb6f
......@@ -18,8 +18,12 @@ function plotGraph(settings)
success: function(res){
res.data.opt.axes.xaxis.renderer=$.jqplot.DateAxisRenderer;
res.data.opt.axes.xaxis.tickRenderer=$.jqplot.CanvasAxisTickRenderer;
$("#"+t.settings.eid).empty();
$.jqplot(t.settings.eid, res.data.data, res.data.opt);
//$("#"+t.settings.eid).empty();
if(typeof(t.jq)!='undefined')
t.jq.destroy();
t.jq=$.jqplot(t.settings.eid, res.data.data, res.data.opt);
//t.jq.destroy();
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment