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 b3c2779 commit 3d45c9cCopy full SHA for 3d45c9c
lib/web/mage/bootstrap.js
@@ -2,24 +2,18 @@
2
* Copyright © 2015 Magento. All rights reserved.
3
* See COPYING.txt for license details.
4
*/
5
-/*jshint jquery:true browser:true */
6
define([
7
- "jquery",
8
- "mage/apply/main"
9
-], function($, mage){
+ 'jquery',
+ 'mage/apply/main'
+], function ($, mage) {
10
'use strict';
11
-
+
12
$.ajaxSetup({
13
cache: false
14
});
15
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
-});
+ /**
+ * Init all components defined via data-mage-init attribute.
+ */
+ $(mage.apply);
+});
0 commit comments