Skip to content

Commit 2a3911a

Browse files
save file
1 parent 53b2c37 commit 2a3911a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
//:
118118

119119

120+
var explorer;
120121
var html;
121122

122123

@@ -146,7 +147,7 @@
146147
debug=eval(debug.mod);
147148
debug('init');
148149
html = mod['code-explorer-html'];
149-
html.initmod({fn});
150+
html.initmod({explorer,fn});
150151

151152

152153
}//init
@@ -230,9 +231,11 @@
230231

231232
obj.update = update;
232233

233-
function update(){
234-
debug('update',ui.mode);
235-
update[ui.mode]();
234+
function update(txt,mode){
235+
236+
mode ||= ui.mode;
237+
debug('update',mode);
238+
update[mode](txt,mode);
236239

237240
}//update
238241

0 commit comments

Comments
 (0)