diff --git a/js/app/views/PlotComponents/PlotElementPanel.js b/js/app/views/PlotComponents/PlotElementPanel.js index 670a186..e594f41 100644 --- a/js/app/views/PlotComponents/PlotElementPanel.js +++ b/js/app/views/PlotComponents/PlotElementPanel.js @@ -23,7 +23,8 @@ Ext.define('amdaPlotComp.PlotElementPanel', { destroy: function() { this.elementFormsManager.each(function (key, value, length) { this.elementFormsManager.unregister(value); - }, this); + value.destroy(); + }, this); this.callParent(); }, @@ -188,4 +189,4 @@ Ext.define('amdaPlotComp.PlotElementPanel', { Ext.apply (this , Ext.apply (arguments, myConf)); } -}); \ No newline at end of file +}); diff --git a/js/app/views/PlotComponents/PlotLayoutForm.js b/js/app/views/PlotComponents/PlotLayoutForm.js index 3c12023..819a709 100644 --- a/js/app/views/PlotComponents/PlotLayoutForm.js +++ b/js/app/views/PlotComponents/PlotLayoutForm.js @@ -23,8 +23,9 @@ Ext.define('amdaPlotComp.PlotLayoutForm', { destroy: function() { this.layoutOptionsFormsManager.each(function (key, value, length) { - this.layoutOptionsFormsManager.unregister(value); - }, this); + this.layoutOptionsFormsManager.unregister(value); + value.destroy(); + }, this); this.callParent(); }, @@ -99,4 +100,4 @@ Ext.define('amdaPlotComp.PlotLayoutForm', { this.layoutOptionsContainer ]; } -}); \ No newline at end of file +}); diff --git a/js/app/views/PlotComponents/PlotParamForm.js b/js/app/views/PlotComponents/PlotParamForm.js index 0ae846b..951f9af 100644 --- a/js/app/views/PlotComponents/PlotParamForm.js +++ b/js/app/views/PlotComponents/PlotParamForm.js @@ -30,8 +30,9 @@ Ext.define('amdaPlotComp.PlotParamForm', { destroy: function() { this.drawingOptionsFormsManager.each(function (key, value, length) { - this.drawingOptionsFormsManager.unregister(value); - }, this); + this.drawingOptionsFormsManager.unregister(value); + value.destroy(); + }, this); this.callParent(); }, @@ -49,7 +50,6 @@ Ext.define('amdaPlotComp.PlotParamForm', { formId = type; formId += '-drawing-options-form'; - if (!this.drawingOptionsFormsManager.get(formId)) { switch(type) @@ -143,4 +143,4 @@ Ext.define('amdaPlotComp.PlotParamForm', { this.drawingOptionsContainer ]; } -}); \ No newline at end of file +}); -- libgit2 0.21.2