Skip to content

Commit 7b168c2

Browse files
author
Denys Rul
committed
MAGETWO-33947: Story stabilization
- Revert bootstrap file
1 parent 6fc0d28 commit 7b168c2

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

lib/web/mage/bootstrap.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@
22
* Copyright © 2015 Magento. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
/*jshint jquery:true browser:true */
56
define([
6-
'jquery',
7-
'mage/apply/main'
8-
], function ($, mage) {
7+
"jquery",
8+
"mage/apply/main"
9+
], function($, mage){
910
'use strict';
10-
11+
1112
$.ajaxSetup({
1213
cache: false
1314
});
1415

15-
$(mage.apply);
16-
});
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

Comments
 (0)