Skip to content

Commit 2a8fe9c

Browse files
save file
1 parent 0b00442 commit 2a8fe9c

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

utils/editors/js-console/html/output-console/v2.0/output-console-v2.0.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,26 @@
539539
//:
540540

541541

542-
542+
function disp(){
543+
544+
var txt = build(arguments);
545+
var div = document.createElement('div');
546+
div.textContent = txt;
547+
cur.root.append(div);
548+
549+
cur.node = div;
550+
551+
if(txt==''){
552+
div.style.height = '16px';
553+
}
554+
555+
cur.root.scrollTop = 999999999;
556+
557+
return div;
558+
559+
}//disp
560+
561+
543562
obj.clear = function(){return clear()}
544563

545564
function clear(){
@@ -586,8 +605,12 @@
586605

587606
function groupCollapsed(...args){
588607

589-
log.apply(null,args);
590-
window.console.groupCollapsed.apply(window.console,args);
608+
if(chk.log.checked){
609+
window.console.groupCollapsed.apply(window.console,args);
610+
}
611+
612+
var div = disp.apply(null,arguments);
613+
return div;
591614

592615
}//groupCollapsed
593616

0 commit comments

Comments
 (0)