We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc0d28 commit 7b168c2Copy full SHA for 7b168c2
lib/web/mage/bootstrap.js
@@ -2,15 +2,24 @@
2
* Copyright © 2015 Magento. All rights reserved.
3
* See COPYING.txt for license details.
4
*/
5
+/*jshint jquery:true browser:true */
6
define([
- 'jquery',
7
- 'mage/apply/main'
8
-], function ($, mage) {
+ "jquery",
+ "mage/apply/main"
9
+], function($, mage){
10
'use strict';
-
11
+
12
$.ajaxSetup({
13
cache: false
14
});
15
- $(mage.apply);
16
-});
+ var bootstrap = function() {
17
+ /**
18
+ * Init all components defined via data-mage-init attribute
19
+ * and subscribe init action to contentUpdated event
20
+ */
21
+ mage.apply();
22
+ };
23
24
+ $(bootstrap);
25
+});
0 commit comments