File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 44
55
66 < script init >
7+ // ext here is a convenience library for easily loading modules
8+ // $ here is a simple library that contains some common dom operations
9+ // datatype a simple function for determining datatypes, $ relies on it
10+ var ext ;
11+ var $ ;
12+ var datatype ;
713
8- var ext ; // ext here is a convenience library for easily loading modules
9- var $ ; // $ here is a simple library that contains some common dom operations
10- var datatype ; // a simple function for determining datatypes, $ relies on it
1114
1215 var log ;
16+
1317
1418 async function init ( ) {
1519
2731 } //init
2832
2933( async ( ) => {
34+ // this adds to the asynchronous counter
35+ mod . stack . add ;
3036
31- mod . stack . add ; // this adds to the asynchronous counter
37+ // these libraries need to be loaded for this example before the page is ready to run
38+
39+ ( { ext} = await import ( 'https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js' ) ) ;
40+ [ $ , datatype ] = await ext . load . libs ( 'js/dom/$.js' , 'js/core/datatype.js' ) ;
3241
33- ( { ext} = await import ( 'https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js' ) ) ;
34- $ , datatype = await ext . load . libs ( 'js/dom/$.js' , 'js/core/datatype.js' ) ;
35-
36- mod . stack . complete ; // this tells the component library the asynchonous work here is done
42+ // this tells the component library the asynchonous work here is done
43+ mod . stack . complete ;
3744
3845} ) ( ) ;
3946
You can’t perform that action at this time.
0 commit comments