diff --git a/js/widgets/widget-chart.js b/js/widgets/widget-chart.js index 10a57b2d..8048ce0d 100644 --- a/js/widgets/widget-chart.js +++ b/js/widgets/widget-chart.js @@ -234,8 +234,8 @@ }); }, - remove: function(c) { - c.$table.off(chart.event); + remove: function(c, wo) { + c.$table.off(wo.chart_event); } }; @@ -269,7 +269,7 @@ }, remove: function(table, c, wo) { - chart.remove(c); + chart.remove(c, wo); } });