This commit is contained in:
yumoqing 2024-06-30 01:52:48 +08:00
parent 9f28289bb6
commit 76a6511fbd
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,8 @@
<script src="{{entire_url('/bricks/3parties/videojs-ie8.min.js')}}"></script>
</head>
<body>
<script src="//cdn.bootcdn.net/ajax/libs/eruda/2.3.3/eruda.js"></script>
<script>eruda.init();</script>
<script src="{{entire_url('/bricks/3parties/marked.min.js')}}"></script>
<script src="{{entire_url('/bricks/3parties/xterm.js')}}"></script>
<script src="{{entire_url('/bricks/3parties/video.min.js')}}"></script>

View File

@ -46,7 +46,10 @@ bricks.Layout = class extends bricks.JsWidget {
w.dispatch('on_parent', null);
}
clear_widgets(w){
this.dom_element.replaceChildren();
var e = this.dom_element;
while(e.firstChild){
e.removeChild(e.firstChild);
}
for (var i=0;i<this.children.length;i++){
var w = this.children[i];
w.parent = null;