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