diff --git a/js/app/views/PlotComponents/plotFunction/Histogram.js b/js/app/views/PlotComponents/plotFunction/Histogram.js index addff8a..f3b027b 100644 --- a/js/app/views/PlotComponents/plotFunction/Histogram.js +++ b/js/app/views/PlotComponents/plotFunction/Histogram.js @@ -13,7 +13,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { * It creates a combo box for selecting the density type and number fields for entering the xMin, xMax, and number of bins. */ initComponent: function () { - const me = this; + const self = this; // Define combo box store const comboStore = Ext.create('Ext.data.Store', { @@ -27,7 +27,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { // Create combo box for selecting the density type const densityTypeCombo = Ext.create('Ext.form.field.ComboBox', { fieldLabel: 'Density Type', - name: me.functionId, + name: self.functionId, store: comboStore, queryMode: 'local', displayField: 'label', @@ -37,12 +37,12 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { }); // Add items to the component - Ext.apply(me, { + Ext.apply(self, { items: [ { xtype: 'numberfield', fieldLabel: 'X Min', - name: me.xMinId, + name: self.xMinId, allowDecimals: true, hideTrigger: true, keyNavEnabled: false, @@ -50,7 +50,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { { xtype: 'numberfield', fieldLabel: 'X Max', - name: me.xMaxId, + name: self.xMaxId, allowDecimals: true, hideTrigger: true, keyNavEnabled: false, @@ -58,7 +58,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { { xtype: 'numberfield', fieldLabel: 'Number of Bins', - name: me.binsId, + name: self.binsId, minValue: 1, value: 100, allowDecimals: false, @@ -69,7 +69,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', { }); // Call the parent class's initComponent method - me.callParent(arguments); + self.callParent(arguments); }, /** -- libgit2 0.21.2