Skip to content

Commit 8cdb9be

Browse files
save file
1 parent 5f8dcfc commit 8cdb9be

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,10 @@
224224
$(node,'.indent').style.width = (o.indent*3)+'px';
225225
$(node,'.name').textContent = o.name;
226226
$(node,'.args').textContent = o.args;
227-
view.append(node);
228227

229-
node.onclick = e=>editor.gotoline(o.line);
228+
node.onclick = e=>editor.gotoline(o.line);
229+
230+
view.append(node);
230231

231232
});
232233

@@ -243,11 +244,11 @@
243244

244245
list.forEach(o=>{
245246

246-
var node = ui.html.cloneNode(true);
247-
$(node,'.line').textContent = o.line;
248-
$(node,'.name').textContent = o.name;
247+
var node = ui.html.cloneNode(true);
248+
$(node,'.line').textContent = o.line;
249+
$(node,'.name').textContent = o.name;
249250
if(o.attrs.id){
250-
$(node,'.id').textContent = o.attrs.id;
251+
$(node,'.id').textContent = o.attrs.id;
251252
}else{
252253
$(node,'.id').remove();
253254
}
@@ -257,6 +258,10 @@
257258
$(node,'.class').remove();
258259
}
259260

261+
node.onclick = e=>editor.gotoLine(o.line);
262+
263+
view.append(node);
264+
260265
});
261266

262267
}//html

0 commit comments

Comments
 (0)