From 342a9abcc828b01f48fc1cb202806a15f4f7a434 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sat, 23 Feb 2019 21:13:27 +0800 Subject: [PATCH] refactor: remove unnecessary works --- src/utils/visibleNodesGenerator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/visibleNodesGenerator.ts b/src/utils/visibleNodesGenerator.ts index cb862e1..bf9d5d4 100644 --- a/src/utils/visibleNodesGenerator.ts +++ b/src/utils/visibleNodesGenerator.ts @@ -227,7 +227,6 @@ class L4 { this.l2 = l2 this.l3 = l3 this.focusedNode = null - this.l3.generateVisibleNodes() } focusNode = (node: TreeNode | null) => { @@ -260,7 +259,7 @@ export default class VisibleNodesGenerator { this.search = async (...args) => { const r = await this.l2.search(...args) this.l3.generateVisibleNodes() - this.l4 = new L4(this.l1, this.l2, this.l3) + this.l4.focusNode(null) return r } this.setExpand = (...args) => this.l3.setExpand(...args)