Skip to content

Commit 0e791c3

Browse files
Update downloadable.js
Changed let to var. Added 'use strict';
1 parent c1ddc0f commit 0e791c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Downloadable/view/frontend/web/js/downloadable.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ define([
1010
'jquery-ui-modules/widget',
1111
'Magento_Catalog/js/price-box'
1212
], function ($) {
13-
13+
'use strict';
14+
1415
/**
1516
* Downloadable widget
1617
*/
@@ -78,7 +79,7 @@ define([
7879
* @private
7980
*/
8081
reloadAllCheckText: function () {
81-
let allChecked = true,
82+
var allChecked = true,
8283
allElementsCheck = $(this.options.allElements),
8384
allElementsLabel = $('label[for="' + allElementsCheck.attr('id') + '"] > span');
8485

0 commit comments

Comments
 (0)