Skip to content

Commit

Permalink
Merge pull request #11608 from Fabuloops/js-core-jquery-load-shortcut…
Browse files Browse the repository at this point in the history
…-deprecated

Fix jquery shortcut function 'load' deprecate
  • Loading branch information
PierreRambaud committed Dec 22, 2018
2 parents 706ea9a + d60a7a0 commit 54dd686
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion themes/_core/js/checkout-address.js
Expand Up @@ -64,7 +64,7 @@ export default function () {
});
}

$(window).load(() => {
$(window).on('load', () => {
let $visibleAddressError = $('.js-address-error:visible');

if (parseInt(useSameAddress) === 0) {
Expand Down
36 changes: 20 additions & 16 deletions themes/core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/core.js.map

Large diffs are not rendered by default.

0 comments on commit 54dd686

Please sign in to comment.