Skip to content

Commit 3d45c9c

Browse files
author
Denys Rul
committed
MAGETWO-33932: Add ability to initialize modules by selector
- Remove bootstrap method
1 parent b3c2779 commit 3d45c9c

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

lib/web/mage/bootstrap.js

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

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-
});
15+
/**
16+
* Init all components defined via data-mage-init attribute.
17+
*/
18+
$(mage.apply);
19+
});

0 commit comments

Comments
 (0)