File tree Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 8
8
] , function ( _ , $ ) {
9
9
'use strict' ;
10
10
11
- var scriptSelecotr = 'script[type="text/x-magento-init"]' ,
11
+ var scriptSelector = 'script[type="text/x-magento-init"]' ,
12
12
virtual = [ ] ;
13
13
14
14
/**
@@ -71,7 +71,7 @@ define([
71
71
72
72
parent = parent || document . body ;
73
73
74
- elems = document . querySelectorAll ( scriptSelecotr ) ;
74
+ elems = document . querySelectorAll ( scriptSelector ) ;
75
75
76
76
return _ . toArray ( elems ) ;
77
77
}
Original file line number Diff line number Diff line change 2
2
* Copyright © 2015 Magento. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
- /*jshint jquery:true browser:true */
6
5
define ( [
7
- " jquery" ,
8
- " mage/apply/main"
9
- ] , function ( $ , mage ) {
6
+ ' jquery' ,
7
+ ' mage/apply/main'
8
+ ] , function ( $ , mage ) {
10
9
'use strict' ;
11
-
10
+
12
11
$ . ajaxSetup ( {
13
12
cache : false
14
13
} ) ;
15
14
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 ) ;
15
+ $ ( mage . apply ) ;
25
16
} ) ;
You can’t perform that action at this time.
0 commit comments