Commit 6c264222f6eab06021b532b4691daa4e085db33c

Authored by Menouard AZIB
1 parent 5aa4ee37

Add comments to Histogram.js

Showing 1 changed file with 7 additions and 7 deletions   Show diff stats
js/app/views/PlotComponents/plotFunction/Histogram.js
... ... @@ -13,7 +13,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
13 13 * It creates a combo box for selecting the density type and number fields for entering the xMin, xMax, and number of bins.
14 14 */
15 15 initComponent: function () {
16   - const me = this;
  16 + const self = this;
17 17  
18 18 // Define combo box store
19 19 const comboStore = Ext.create('Ext.data.Store', {
... ... @@ -27,7 +27,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
27 27 // Create combo box for selecting the density type
28 28 const densityTypeCombo = Ext.create('Ext.form.field.ComboBox', {
29 29 fieldLabel: 'Density Type',
30   - name: me.functionId,
  30 + name: self.functionId,
31 31 store: comboStore,
32 32 queryMode: 'local',
33 33 displayField: 'label',
... ... @@ -37,12 +37,12 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
37 37 });
38 38  
39 39 // Add items to the component
40   - Ext.apply(me, {
  40 + Ext.apply(self, {
41 41 items: [
42 42 {
43 43 xtype: 'numberfield',
44 44 fieldLabel: 'X Min',
45   - name: me.xMinId,
  45 + name: self.xMinId,
46 46 allowDecimals: true,
47 47 hideTrigger: true,
48 48 keyNavEnabled: false,
... ... @@ -50,7 +50,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
50 50 {
51 51 xtype: 'numberfield',
52 52 fieldLabel: 'X Max',
53   - name: me.xMaxId,
  53 + name: self.xMaxId,
54 54 allowDecimals: true,
55 55 hideTrigger: true,
56 56 keyNavEnabled: false,
... ... @@ -58,7 +58,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
58 58 {
59 59 xtype: 'numberfield',
60 60 fieldLabel: 'Number of Bins',
61   - name: me.binsId,
  61 + name: self.binsId,
62 62 minValue: 1,
63 63 value: 100,
64 64 allowDecimals: false,
... ... @@ -69,7 +69,7 @@ Ext.define('amdaPlotComp.plotFunction.Histogram', {
69 69 });
70 70  
71 71 // Call the parent class's initComponent method
72   - me.callParent(arguments);
  72 + self.callParent(arguments);
73 73 },
74 74  
75 75 /**
... ...