File tree Expand file tree Collapse file tree
utils/misc/html-entities/v2.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110 menu . on . close = focus ;
111111
112112
113- initdom ( document . body ) ;
113+ await initdom ( document . body ) ;
114+
115+ hdr . complete ( ) ;
114116
115117
116118 } //init
265267 //:
266268
267269
268- function initdom ( rootnode ) {
270+ async function initdom ( rootnode ) {
269271
270272 root = rootnode ;
271273
272- hdr . initdom ( ) ;
274+ await Promise . all ( [
275+ hdr . initdom ( ) ,
276+ filemod . initdom ( r1 ) ,
277+ editor . source . initdom ( { mode :'text' } ) ,
278+ editor . output . initdom ( { mode :'text' } ) ,
279+ log . initdom ( ) ,
280+ ] ) ;
281+
273282 hdr . set . version ( version ) ;
274283
275284 var r1 = $ ( root , '#hdr' ) ;
276285
277- filemod . initdom ( r1 ) ;
278286
279287 $ ( r1 , '[value=encode]' ) . onclick = btn . encode ;
280288 $ ( r1 , '[value=decode]' ) . onclick = btn . decode ;
283291
284292 var view = $ ( root , '#view' ) ;
285293
286- editor . source . initdom ( { mode :'text' } ) ;
287- editor . output . initdom ( { mode :'text' } ) ;
288-
289-
290- log . initdom ( ) ;
291294
292295
293296 focus ( ) ;
You can’t perform that action at this time.
0 commit comments