From 28073acf6b704444daaa6fd162c426dfc1294e16 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 2 Feb 2018 15:30:31 +0100 Subject: [PATCH] add itemAt function --- remix-debugger/src/ui/TreeView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/remix-debugger/src/ui/TreeView.js b/remix-debugger/src/ui/TreeView.js index d2133c69ba..c1541f4ff0 100644 --- a/remix-debugger/src/ui/TreeView.js +++ b/remix-debugger/src/ui/TreeView.js @@ -77,7 +77,7 @@ class TreeView { formatData (key, data, children, expand, keyPath) { var self = this - var li = yo`
  • ` + var li = yo`
  • ` var caret = yo`
    ` var label = yo`
    @@ -127,6 +127,10 @@ class TreeView { } } + itemAt (path) { + return this.view.querySelector(`li[key="${path}"]`) + } + labelAt (path) { return this.view.querySelector(`div[key="${path}"]`) }