Skip to content

Commit be52433

Browse files
author
Oleksii Korshenko
authored
MAGETWO-67341: Upgrade JS dependencies #9062
2 parents 81e5311 + 4826fac commit be52433

File tree

40 files changed

+176
-166
lines changed

40 files changed

+176
-166
lines changed

app/code/Magento/Bundle/view/base/web/js/price-bundle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ define([
239239

240240
switch (optionType) {
241241
case 'radio':
242-
243242
case 'select-one':
244243

245244
if (optionType === 'radio' && !element.is(':checked')) {

app/code/Magento/Catalog/view/base/web/js/price-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ define([
3838
* Widget creating.
3939
*/
4040
_create: function createPriceBox() {
41-
this.cache = {};
4241
var box = this.element;
4342

43+
this.cache = {};
4444
this._setDefaultsFromPriceConfig();
4545
this._setDefaultsFromDataSet();
4646

app/code/Magento/Catalog/view/base/web/js/price-options.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ define([
4343

4444
switch (optionType) {
4545
case 'text':
46-
4746
case 'textarea':
4847
changes[optionHash] = optionValue ? optionConfig.prices : {};
4948
break;

app/code/Magento/Dhl/view/frontend/web/js/model/shipping-rates-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ define([
3232
}
3333
});
3434

35-
return !Boolean(this.validationErrors.length);
35+
return !this.validationErrors.length;
3636
}
3737
};
3838
});

app/code/Magento/Fedex/view/frontend/web/js/model/shipping-rates-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ define([
3232
}
3333
});
3434

35-
return !Boolean(this.validationErrors.length);
35+
return !this.validationErrors.length;
3636
}
3737
};
3838
});

app/code/Magento/OfflineShipping/view/frontend/web/js/model/shipping-rates-validator/flatrate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ define([
3131
}
3232
});
3333

34-
return !Boolean(this.validationErrors.length);
34+
return !this.validationErrors.length;
3535
}
3636
};
3737
});

app/code/Magento/OfflineShipping/view/frontend/web/js/model/shipping-rates-validator/freeshipping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ define([
3131
}
3232
});
3333

34-
return !Boolean(this.validationErrors.length);
34+
return !this.validationErrors.length;
3535
}
3636
};
3737
});

app/code/Magento/OfflineShipping/view/frontend/web/js/model/shipping-rates-validator/tablerate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ define([
3838
}
3939
});
4040

41-
return !Boolean(this.validationErrors.length);
41+
return !this.validationErrors.length;
4242
}
4343
};
4444
});

app/code/Magento/PageCache/view/frontend/web/js/page-cache.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ define([
4141
* @param {jQuery} element - Comment holder
4242
*/
4343
(function lookup(element) {
44+
var iframeHostName;
45+
4446
// prevent cross origin iframe content reading
4547
if ($(element).prop('tagName') === 'IFRAME') {
46-
var iframeHostName = $('<a>').prop('href', $(element).prop('src'))
48+
iframeHostName = $('<a>').prop('href', $(element).prop('src'))
4749
.prop('hostname');
4850

4951
if (window.location.hostname !== iframeHostName) {

app/code/Magento/Theme/view/frontend/web/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ define([
157157
//mainNav();
158158

159159
//run navigation with delays
160-
mainNav('nav', {
160+
window.mainNav('nav', {
161161
'show_delay': '100',
162162
'hide_delay': '100'
163163
});

0 commit comments

Comments
 (0)