diff --git a/js/app/models/PlotObjects/PlotPanelObject.js b/js/app/models/PlotObjects/PlotPanelObject.js index bb36e5e..207f8bb 100644 --- a/js/app/models/PlotObjects/PlotPanelObject.js +++ b/js/app/models/PlotObjects/PlotPanelObject.js @@ -280,7 +280,7 @@ Ext.define('amdaPlotObj.PlotPanelObject', { } }, - createNewParam: function(paramId, paramComponents, isVector, is2d, plotOnly, onAfterCreate) { + createNewParam: function(paramId, paramComponents, isVector, plotOnly, onAfterCreate) { this.set('last-param-id', this.get('last-param-id') + 1); var emptyPanel = (this.params().getCount() == 0); diff --git a/js/app/views/PlotComponents/PlotTree.js b/js/app/views/PlotComponents/PlotTree.js index 86a7b79..4c276bb 100644 --- a/js/app/views/PlotComponents/PlotTree.js +++ b/js/app/views/PlotComponents/PlotTree.js @@ -607,7 +607,7 @@ Ext.define('amdaPlotComp.PlotTree', { return false; }, - dropParamToCreate: function (targetNode, position, paramId, paramComponents, isVector, is2d, plotOnly) + dropParamToCreate: function (targetNode, position, paramId, paramComponents, isVector, plotOnly) { var panelObject = null; if (targetNode == null) @@ -640,7 +640,7 @@ Ext.define('amdaPlotComp.PlotTree', { //Create param object var me = this; - panelObject.createNewParam(paramId, paramComponents, isVector, is2d, plotOnly, function (newParamObject) { + panelObject.createNewParam(paramId, paramComponents, isVector, plotOnly, function (newParamObject) { //Rebuild params node me.buildPanelsNode(newParamObject.getId()); //BRE newParamObject @@ -669,7 +669,6 @@ Ext.define('amdaPlotComp.PlotTree', { this.dropParamToCreate(targetNode, position, "#" + record.get('alias')); else { var isVector = record.get('iconCls') == 'icon-vector'; - var is2d = record.get('iconCls') == 'icon-2dspectra'; var component_info = record.get('component_info'); var param_id = record.get('id'); var plot_only = record.get('notyet'); @@ -683,7 +682,7 @@ Ext.define('amdaPlotComp.PlotTree', { if (component_info.index2) components['index2'] = component_info.index2; } - this.dropParamToCreate(targetNode, position, param_id, components, isVector, is2d, plot_only); + this.dropParamToCreate(targetNode, position, param_id, components, isVector, plot_only); } return true; case 'amdaModel.AliasNode' : -- libgit2 0.21.2