Skip to content

Commit e7f4a71

Browse files
save file
1 parent 0accb61 commit e7f4a71

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,22 @@
237237
}//update
238238

239239

240-
update.fn = function(){
240+
update.fn = function(txt,mode){
241241
//var d=debug('update');
242-
var mode = editor.mode;
243-
debug(mode);
244-
var txt = editor.getvalue();
242+
switch(mode){
243+
244+
case undefined :
245+
case 'js' : mode='javascript'; break;
246+
247+
}//switch
248+
249+
if(!txt){
250+
mode = editor.mode;
251+
txt = editor.getvalue();
252+
}
253+
245254
var list = parse.fn[mode](txt);
255+
debug(mode);
246256
console.log(list);
247257
view.replaceChildren();
248258

0 commit comments

Comments
 (0)