Removed old debugging code
This commit is contained in:
parent
697576cb34
commit
48ac1a8044
2 changed files with 1 additions and 15 deletions
|
|
@ -10,7 +10,6 @@ export class App {
|
|||
this.crumbs = new N2Crumbs()
|
||||
this.crumbsElement = document.getElementById('crumbs')
|
||||
this.nodeUI = document.getElementById('note')
|
||||
this.showNodeEventSequence = new ShowNodeEventSequence() // discard all GO_TO_NODE events
|
||||
|
||||
this.sidebar.render().then(sidebar => {
|
||||
document.getElementById('tree').append(sidebar)
|
||||
|
|
@ -198,7 +197,7 @@ export class App {
|
|||
await this.sidebar.makeVisible(node, ancestors, dontExpand)
|
||||
|
||||
_mbus.dispatch('CRUMBS_SET', ancestors, () => this.crumbsElement.replaceChildren(this.crumbs.render()))
|
||||
_mbus.dispatch('NODE_UI_OPEN', { node, eventSequence: this.showNodeEventSequence.next() })
|
||||
_mbus.dispatch('NODE_UI_OPEN', node)
|
||||
_mbus.dispatch('TREE_EXPANSION', { expand: false, when: 'narrow' })
|
||||
_mbus.dispatch('NODE_UNMODIFIED')
|
||||
}//}}}
|
||||
|
|
@ -208,18 +207,6 @@ export class App {
|
|||
}// }}}
|
||||
}
|
||||
|
||||
class ShowNodeEventSequence {
|
||||
constructor() {
|
||||
this.seq = 0
|
||||
}
|
||||
next() {
|
||||
return ++this.seq
|
||||
}
|
||||
current() {
|
||||
return this.seq
|
||||
}
|
||||
}
|
||||
|
||||
class N2Crumbs extends CustomHTMLElement {
|
||||
static {// {{{
|
||||
this.tmpl = document.createElement('template')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue