Skip to content

Commit dfb3bc1

Browse files
save file
1 parent a34c152 commit dfb3bc1

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

‎utils/editors/html/code-explorer/html/code-explorer-html/v1.0/code-explorer-html-v1.0.html‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272

7373

7474
var shadow;
75+
76+
var view;
77+
7578
var item;
7679

7780

@@ -88,11 +91,13 @@
8891
//:
8992

9093

91-
obj.initdom = async function(){
94+
obj.initdom = async function(params){
9295
debug('initdom');
93-
shadow = host.shadowRoot;
96+
shadow = host.shadowRoot;
9497

95-
item = $(shadow,'.html');
98+
({view} = params);
99+
100+
item = $(shadow,'.html');
96101
item.remove();
97102

98103
}//initdom
@@ -101,11 +106,20 @@
101106
//:
102107

103108

104-
obj.update = update;
109+
obj.update = function(txt){
105110

106-
function update(view){
111+
fn.set.mode('html');
112+
update(txt);
113+
114+
}//update
107115

108-
var txt = editor.getvalue();
116+
117+
function update(txt){
118+
119+
if(!txt){
120+
txt = editor.getvalue();
121+
}
122+
109123
var list = parse(txt);
110124

111125
var colours = {

0 commit comments

Comments
 (0)