Sync better
This commit is contained in:
parent
1f24f1f2f2
commit
be7f5dbf30
5 changed files with 24 additions and 22 deletions
|
|
@ -117,7 +117,6 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
this.tabIndex = 0
|
||||
|
||||
this.treeNodeComponents = {}
|
||||
this.treeTrunk = []
|
||||
this.expandedNodes = {} // keyed on UUID
|
||||
this.selectedNode = null
|
||||
this.rendered = false
|
||||
|
|
@ -170,10 +169,9 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
}// }}}
|
||||
reset() {// {{{
|
||||
this.treeNodeComponents = {}
|
||||
this.treeTrunk = []
|
||||
this.rendered = false
|
||||
this.elTreenodes.replaceChildren()
|
||||
this.populateFirstLevel()
|
||||
this.render()
|
||||
}// }}}
|
||||
getNodeExpanded(UUID) {//{{{
|
||||
if (this.expandedNodes[UUID] === undefined)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue