diff --git a/js/app/models/PlotObjects/PlotPanelObject.js b/js/app/models/PlotObjects/PlotPanelObject.js index b71eb05..883138e 100644 --- a/js/app/models/PlotObjects/PlotPanelObject.js +++ b/js/app/models/PlotObjects/PlotPanelObject.js @@ -371,6 +371,13 @@ Ext.define('amdaPlotObj.PlotPanelObject', { return false; this.params().remove(paramRecord); this.dirty = true; + var curvesToRemove = []; + this.curves().each(function(curve) { + if (curve.get('curve-serie-id') == paramId) { + curvesToRemove.push(curve); + } + }); + this.curves().remove(curvesToRemove); return true; }, @@ -753,4 +760,4 @@ Ext.define('amdaPlotObj.PlotPanelObject', { return panelValues; } -}); \ No newline at end of file +}); -- libgit2 0.21.2