Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
8746cf79
Commit
8746cf79
authored
Jan 31, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove nodeIsExpanded
parent
ea15e2e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
TreeView.js
remix-debugger/src/ui/TreeView.js
+1
-2
No files found.
remix-debugger/src/ui/TreeView.js
View file @
8746cf79
...
...
@@ -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 {
</div>`
li
.
appendChild
(
label
)
if
(
data
.
children
)
{
var
isExpanded
=
self
.
nodeIsExpanded
[
keyPath
]
var
list
=
yo
`<ul class=
${
css
.
ul_tv
}
>
${
children
}
</ul>`
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment