File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
utils/editors/js-console/html/output/v2.0 Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 5353
5454 < script >
5555
56- ( function ( ) {
56+ ( function output ( { mod , root , node } ) {
5757 console . log ( 'output' ) ;
5858 var obj = { } ;
5959
8383 var shadow ;
8484
8585 var output ;
86+ var cur = { } ;
87+
8688 var iframe ;
8789 obj . iframe ;
8890
126128
127129
128130 output = $ ( shadow , '#output' ) ;
131+ cur . root = output ;
129132
130133
131134 wrap ( chk . wrap . checked ) ;
271274 con . clear . call ( window . console ) ;
272275 }
273276
274- output . replaceChildren ( ) ;
277+ cur . root . replaceChildren ( ) ;
275278
276279 } //clear
277280
307310 if ( txt == '' ) {
308311 div . style . height = '16px' ;
309312 }
310- output . append ( div ) ;
313+ cur . root . append ( div ) ;
311314
312- output . scrollTop = 999999999 ;
315+ cur . root . scrollTop = 999999999 ;
313316
314317 return div ;
315318
341344 node = document . createElement ( str ) ;
342345 }
343346
344- output . append ( node ) ;
347+ cur . root . append ( node ) ;
345348
346349 return node ;
347350
356359
357360 return obj ;
358361
359- } ) ;
362+ } ) //output
360363
361364 </ script >
362365
You can’t perform that action at this time.
0 commit comments