Skip to content

Commit 23e0ff3

Browse files
save file
1 parent 3eabcd7 commit 23e0ff3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

blog/25-08-07/determine-datatypes-in-javascript/determine-datatypes-in-javascript.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565

6666
var menu;
6767

68+
var hdr;
6869
var ex1;
6970
var ex2;
7071
var ex3;
71-
7272
var log;
7373

7474

@@ -79,18 +79,20 @@
7979
debug('init',version);
8080
menu = menumod();
8181

82-
82+
hdr = mod['blog-hdr'];
8383
ex1 = mod.ex1;
8484
ex2 = mod.ex2;
8585
ex3 = mod.ex3;
86-
log = mod.log;
86+
log = mod['log-mod'];
8787

88+
hdr.initmod({ext,$});
8889
ex1.initmod({ext,$,menu,ace});
8990
ex2.initmod({ext,$,menu,ace});
9091
ex3.initmod({ext,$,menu,ace});
9192
log.initmod({ext,$});
9293

9394
await Promise.all([
95+
hdr.init(),
9496
ex1.init(),
9597
ex2.init(),
9698
ex3.init(),
@@ -202,7 +204,7 @@
202204
<body>
203205

204206

205-
<blog-hdr component=grp1 v2.0>
207+
<blog-hdr component=grp1>
206208
<h1 class=title>
207209
Determine Datatypes In Javascript
208210
</h1>
@@ -223,7 +225,7 @@ <h1 class=title>
223225
complex and then just mysteriously stop working, my go to for datatype has always been the following :
224226
</div>
225227

226-
<snippet-console id=ex1 component v2.0 src='ex/ex1.js'></snippet-console>
228+
<snippet-console id=ex1 src='ex/ex1.js' component></snippet-console>
227229

228230

229231
<div class=break></div>
@@ -233,7 +235,7 @@ <h1 class=title>
233235
This can be extended further through the use of
234236
</div>
235237

236-
<snippet-console id=ex2 component v2.0 src='ex/ex2.js'></snippet-console>
238+
<snippet-console id=ex2 src='ex/ex2.js' component></snippet-console>
237239

238240

239241
<div class=break></div>
@@ -243,10 +245,10 @@ <h1 class=title>
243245
Instanceof is unreliable in the follow scenario
244246
</div>
245247

246-
<snippet-console id=ex3 component v2.0 src='ex/ex3.js'></snippet-console>
248+
<snippet-console id=ex3 src='ex/ex3.js' component></snippet-console>
247249

248250

249-
<log component v2.0></log>
251+
<log-mod component></log-mod>
250252

251253

252254
</body>
@@ -265,9 +267,9 @@ <h1 class=title>
265267
function initdom(rootnode){
266268

267269

268-
root = rootnode;
269-
270+
root = rootnode;
270271

272+
hdr.initdom();
271273
ex1.initdom();
272274
ex2.initdom();
273275
ex3.initdom();

0 commit comments

Comments
 (0)