diff --git a/static/js/app.mjs b/static/js/app.mjs index 7a9ac52..7904660 100644 --- a/static/js/app.mjs +++ b/static/js/app.mjs @@ -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') diff --git a/static/js/page_node.mjs b/static/js/page_node.mjs index a2ebf52..6665a49 100644 --- a/static/js/page_node.mjs +++ b/static/js/page_node.mjs @@ -42,7 +42,6 @@ export class N2PageNodeUI extends CustomHTMLElement { this.marked = new MarkedPosition() _mbus.subscribe('NODE_UI_OPEN', event => { - console.log(event.detail.data.eventSequence, _app.showNodeEventSequence.current()) this.node = event.detail.data.node this.showMarkdown(true) this.render()