From 8209ed4e27aee80d4ad9736ce5b53a8117b1d070 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 31 Jan 2018 19:59:19 +0100 Subject: [PATCH] remove nodeIsExpanded --- remix-debugger/src/ui/TreeView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remix-debugger/src/ui/TreeView.js b/remix-debugger/src/ui/TreeView.js index 9f542ecbbf..92112840c6 100644 --- a/remix-debugger/src/ui/TreeView.js +++ b/remix-debugger/src/ui/TreeView.js @@ -44,7 +44,6 @@ class TreeView { this.extractData = opts.extractData || this.extractDataDefault this.formatSelf = opts.formatSelf || this.formatSelfDefault this.view = null - this.nodeIsExpanded = {} this.nodes = {} this.labels = {} this.carets = {} @@ -90,11 +89,11 @@ class TreeView { ` li.appendChild(label) if (data.children) { - var isExpanded = self.nodeIsExpanded[keyPath] var list = yo`` this.nodes[keyPath] = list this.labels[keyPath] = label this.carets[keyPath] = caret + list.style.display = 'none' caret.className = list.style.display === 'none' ? 'fa fa-caret-right' : 'fa fa-caret-down' label.onclick = function () { self.expand(keyPath)