Skip to content

Commit 1e87862

Browse files
author
Oleksii Korshenko
committed
MAGETWO-68877: Issue #7988 Typo changed also added comments for each index, getters and setters. #9484
- fixed code style issue
1 parent d3b5486 commit 1e87862

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ define([
3333

3434
if ($.isEmptyObject(getData())) {
3535
checkoutData = {
36-
'selectedShippingAddress': null, //Selected shipping address pulled from persistence storage.
37-
'shippingAddressFromData': null, //Shipping address pulled from persistence storage.
38-
'newCustomerShippingAddress': null, //Shipping address pulled from persistence storage for new customer.
39-
'selectedShippingRate': null, //Shipping rate pulled from persistence storage.
40-
'selectedPaymentMethod': null, //Payment method pulled from persistence storage.
41-
'selectedBillingAddress': null, //Selected billing address pulled from persistence storage.
42-
'billingAddressFromData': null, //Billing address pulled from persistence storage.
43-
'newCustomerBillingAddress': null //Billing address pulled from persistence storage for new customer.
36+
'selectedShippingAddress': null, //Selected shipping address pulled from persistence storage
37+
'shippingAddressFromData': null, //Shipping address pulled from persistence storage
38+
'newCustomerShippingAddress': null, //Shipping address pulled from persistence storage for new customer
39+
'selectedShippingRate': null, //Shipping rate pulled from persistence storage
40+
'selectedPaymentMethod': null, //Payment method pulled from persistence storage
41+
'selectedBillingAddress': null, //Selected billing address pulled from persistence storage
42+
'billingAddressFromData': null, //Billing address pulled from persistence storage
43+
'newCustomerBillingAddress': null //Billing address pulled from persistence storage for new customer
4444
};
4545
saveData(checkoutData);
4646
}
4747

4848
return {
4949
/**
50-
* Setting the selected shipping address pulled from persistence storage.
50+
* Setting the selected shipping address pulled from persistence storage
5151
*
5252
* @param {Object} data
5353
*/
@@ -59,7 +59,7 @@ define([
5959
},
6060

6161
/**
62-
* Pulling the selected shipping address from persistence storage.
62+
* Pulling the selected shipping address from persistence storage
6363
*
6464
* @return {*}
6565
*/
@@ -68,7 +68,7 @@ define([
6868
},
6969

7070
/**
71-
* Setting the shipping address pulled from persistence storage.
71+
* Setting the shipping address pulled from persistence storage
7272
*
7373
* @param {Object} data
7474
*/
@@ -80,7 +80,7 @@ define([
8080
},
8181

8282
/**
83-
* Pulling the shipping address from persistence storage.
83+
* Pulling the shipping address from persistence storage
8484
*
8585
* @return {*}
8686
*/
@@ -89,7 +89,7 @@ define([
8989
},
9090

9191
/**
92-
* Setting the shipping address pulled from persistence storage for new customer.
92+
* Setting the shipping address pulled from persistence storage for new customer
9393
*
9494
* @param {Object} data
9595
*/
@@ -101,7 +101,7 @@ define([
101101
},
102102

103103
/**
104-
* Pulling the shipping address from persistence storage for new customer.
104+
* Pulling the shipping address from persistence storage for new customer
105105
*
106106
* @return {*}
107107
*/
@@ -110,7 +110,7 @@ define([
110110
},
111111

112112
/**
113-
* Setting the selected shipping rate pulled from persistence storage.
113+
* Setting the selected shipping rate pulled from persistence storage
114114
*
115115
* @param {Object} data
116116
*/
@@ -122,7 +122,7 @@ define([
122122
},
123123

124124
/**
125-
* Pulling the selected shipping rate from local storage.
125+
* Pulling the selected shipping rate from local storage
126126
*
127127
* @return {*}
128128
*/
@@ -131,7 +131,7 @@ define([
131131
},
132132

133133
/**
134-
* Setting the selected payment method pulled from persistence storage.
134+
* Setting the selected payment method pulled from persistence storage
135135
*
136136
* @param {Object} data
137137
*/
@@ -143,7 +143,7 @@ define([
143143
},
144144

145145
/**
146-
* Pulling the payment method from persistence storage.
146+
* Pulling the payment method from persistence storage
147147
*
148148
* @return {*}
149149
*/
@@ -152,7 +152,7 @@ define([
152152
},
153153

154154
/**
155-
* Setting the selected billing address pulled from persistence storage.
155+
* Setting the selected billing address pulled from persistence storage
156156
*
157157
* @param {Object} data
158158
*/
@@ -164,7 +164,7 @@ define([
164164
},
165165

166166
/**
167-
* Pulling the selected billing address from persistence storage.
167+
* Pulling the selected billing address from persistence storage
168168
*
169169
* @return {*}
170170
*/
@@ -173,7 +173,7 @@ define([
173173
},
174174

175175
/**
176-
* Setting the billing address pulled from persistence storage.
176+
* Setting the billing address pulled from persistence storage
177177
*
178178
* @param {Object} data
179179
*/
@@ -185,15 +185,16 @@ define([
185185
},
186186

187187
/**
188-
* Pulling the billing address from persistence storage.
188+
* Pulling the billing address from persistence storage
189+
*
189190
* @return {*}
190191
*/
191192
getBillingAddressFromData: function () {
192193
return getData().billingAddressFromData;
193194
},
194195

195196
/**
196-
* Setting the billing address pulled from persistence storage for new customer.
197+
* Setting the billing address pulled from persistence storage for new customer
197198
*
198199
* @param {Object} data
199200
*/
@@ -205,7 +206,7 @@ define([
205206
},
206207

207208
/**
208-
* Pulling the billing address from persistence storage for new customer.
209+
* Pulling the billing address from persistence storage for new customer
209210
*
210211
* @return {*}
211212
*/
@@ -214,7 +215,7 @@ define([
214215
},
215216

216217
/**
217-
* Pulling the email address from persistence storage.
218+
* Pulling the email address from persistence storage
218219
*
219220
* @return {*}
220221
*/
@@ -225,7 +226,7 @@ define([
225226
},
226227

227228
/**
228-
* Setting the email address pulled from persistence storage.
229+
* Setting the email address pulled from persistence storage
229230
*
230231
* @param {String} email
231232
*/
@@ -237,7 +238,7 @@ define([
237238
},
238239

239240
/**
240-
* Pulling the email input field value from persistence storage.
241+
* Pulling the email input field value from persistence storage
241242
*
242243
* @return {*}
243244
*/
@@ -248,7 +249,7 @@ define([
248249
},
249250

250251
/**
251-
* Setting the email input field value pulled from persistence storage.
252+
* Setting the email input field value pulled from persistence storage
252253
*
253254
* @param {String} email
254255
*/

0 commit comments

Comments
 (0)