Skip to content

Commit e4d020e

Browse files
committed
SW-12935 Fixed wrapper function in jquery plugins
1 parent d3c011e commit e4d020e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

themes/Frontend/Responsive/frontend/_public/src/js/jquery.collapse-cart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;jQuery(function ($) {
1+
;(function($, window) {
22
'use strict';
33

44
$.plugin('swCollapseCart', {
@@ -428,4 +428,4 @@
428428
me._destroy();
429429
}
430430
});
431-
});
431+
})(jQuery, window);

themes/Frontend/Responsive/frontend/_public/src/js/jquery.infinite-scrolling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;jQuery(function ($) {
1+
;(function($, window) {
22
'use strict';
33

44
/**
@@ -523,4 +523,4 @@
523523
$.publish('plugin/swInfiniteScrolling/onCloseLoadingIndicator', [ me ]);
524524
}
525525
});
526-
});
526+
})(jQuery, window);

0 commit comments

Comments
 (0)