Commit 25c9cc2ad25716134c825d64d570a2d53a91aad7
1 parent
0ffd5931
Exists in
master
and in
106 other branches
cleanup
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
js/app/models/PlotObjects/PlotPanelObject.js
... | ... | @@ -280,7 +280,7 @@ Ext.define('amdaPlotObj.PlotPanelObject', { |
280 | 280 | } |
281 | 281 | }, |
282 | 282 | |
283 | - createNewParam: function(paramId, paramComponents, isVector, is2d, plotOnly, onAfterCreate) { | |
283 | + createNewParam: function(paramId, paramComponents, isVector, plotOnly, onAfterCreate) { | |
284 | 284 | this.set('last-param-id', this.get('last-param-id') + 1); |
285 | 285 | |
286 | 286 | var emptyPanel = (this.params().getCount() == 0); | ... | ... |
js/app/views/PlotComponents/PlotTree.js
... | ... | @@ -607,7 +607,7 @@ Ext.define('amdaPlotComp.PlotTree', { |
607 | 607 | return false; |
608 | 608 | }, |
609 | 609 | |
610 | - dropParamToCreate: function (targetNode, position, paramId, paramComponents, isVector, is2d, plotOnly) | |
610 | + dropParamToCreate: function (targetNode, position, paramId, paramComponents, isVector, plotOnly) | |
611 | 611 | { |
612 | 612 | var panelObject = null; |
613 | 613 | if (targetNode == null) |
... | ... | @@ -640,7 +640,7 @@ Ext.define('amdaPlotComp.PlotTree', { |
640 | 640 | |
641 | 641 | //Create param object |
642 | 642 | var me = this; |
643 | - panelObject.createNewParam(paramId, paramComponents, isVector, is2d, plotOnly, function (newParamObject) { | |
643 | + panelObject.createNewParam(paramId, paramComponents, isVector, plotOnly, function (newParamObject) { | |
644 | 644 | //Rebuild params node |
645 | 645 | me.buildPanelsNode(newParamObject.getId()); |
646 | 646 | //BRE newParamObject |
... | ... | @@ -669,7 +669,6 @@ Ext.define('amdaPlotComp.PlotTree', { |
669 | 669 | this.dropParamToCreate(targetNode, position, "#" + record.get('alias')); |
670 | 670 | else { |
671 | 671 | var isVector = record.get('iconCls') == 'icon-vector'; |
672 | - var is2d = record.get('iconCls') == 'icon-2dspectra'; | |
673 | 672 | var component_info = record.get('component_info'); |
674 | 673 | var param_id = record.get('id'); |
675 | 674 | var plot_only = record.get('notyet'); |
... | ... | @@ -683,7 +682,7 @@ Ext.define('amdaPlotComp.PlotTree', { |
683 | 682 | if (component_info.index2) |
684 | 683 | components['index2'] = component_info.index2; |
685 | 684 | } |
686 | - this.dropParamToCreate(targetNode, position, param_id, components, isVector, is2d, plot_only); | |
685 | + this.dropParamToCreate(targetNode, position, param_id, components, isVector, plot_only); | |
687 | 686 | } |
688 | 687 | return true; |
689 | 688 | case 'amdaModel.AliasNode' : | ... | ... |