Skip to content

Commit fc1c1d2

Browse files
committed
Rename parameter variable to make intent more easy to understand.
1 parent 7a8c24b commit fc1c1d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Customer/view/frontend/web/js/customer-data.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ define([
7474

7575
/**
7676
* @param {Object} sectionNames
77-
* @param {Boolean} updateSectionId
77+
* @param {Boolean} forceNewSectionTimestamp
7878
* @return {*}
7979
*/
80-
getFromServer: function (sectionNames, updateSectionId) {
80+
getFromServer: function (sectionNames, forceNewSectionTimestamp) {
8181
var parameters;
8282

8383
sectionNames = sectionConfig.filterClientSideSections(sectionNames);
8484
parameters = _.isArray(sectionNames) ? {
8585
sections: sectionNames.join(',')
8686
} : [];
87-
parameters['update_section_id'] = updateSectionId;
87+
parameters['update_section_id'] = forceNewSectionTimestamp;
8888

8989
return $.getJSON(options.sectionLoadUrl, parameters).fail(function (jqXHR) {
9090
throw new Error(jqXHR);
@@ -324,11 +324,11 @@ define([
324324

325325
/**
326326
* @param {Array} sectionNames
327-
* @param {Boolean} updateSectionId
327+
* @param {Boolean} forceNewSectionTimestamp
328328
* @return {*}
329329
*/
330-
reload: function (sectionNames, updateSectionId) {
331-
return dataProvider.getFromServer(sectionNames, updateSectionId).done(function (sections) {
330+
reload: function (sectionNames, forceNewSectionTimestamp) {
331+
return dataProvider.getFromServer(sectionNames, forceNewSectionTimestamp).done(function (sections) {
332332
$(document).trigger('customer-data-reload', [sectionNames]);
333333
buffer.update(sections);
334334
});

0 commit comments

Comments
 (0)