Commit 0891da4829401a44697b87cfed46603a076715fd
1 parent
b3cfb4b8
Exists in
master
and in
112 other branches
Fix some bugs with plot plugins registration / unregistration
Showing
3 changed files
with
17 additions
and
3 deletions
Show diff stats
js/app/views/PlotComponents/PlotExtendShiftPlug.js
js/app/views/PlotComponents/PlotZoomPlug.js
js/app/views/PlotTabResultUI.js
... | ... | @@ -721,9 +721,20 @@ Ext.define('amdaUI.PlotTabResultUI', { |
721 | 721 | ptype: 'plotExtendShiftPlugin', |
722 | 722 | pluginId : 'plot-extendshift-plugin-id' |
723 | 723 | } |
724 | - ] | |
724 | + ], | |
725 | + listeners: { | |
726 | + scope : this, | |
727 | + destroy : function () { | |
728 | + var zoomPlugin = this.getPlugin('plot-zoom-plugin-id'); | |
729 | + if (zoomPlugin) | |
730 | + zoomPlugin.close(); | |
731 | + var exttendShiftPlugin = this.getPlugin('plot-extendshift-plugin-id'); | |
732 | + if (exttendShiftPlugin) | |
733 | + exttendShiftPlugin.close(); | |
734 | + } | |
735 | + } | |
725 | 736 | }; |
726 | - | |
737 | + | |
727 | 738 | Ext.apply(this , plotResultTabPanelConfig); |
728 | 739 | } |
729 | 740 | }); |
730 | 741 | \ No newline at end of file |
... | ... |