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
f1881a37
Commit
f1881a37
authored
Sep 19, 2018
by
Iuri Matias
Committed by
yann300
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reset method to CodeListView
parent
3fce0ac9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
VmDebugger.js
src/app/debugger/debuggerUI/VmDebugger.js
+1
-3
CodeListView.js
src/app/debugger/debuggerUI/vmDebugger/CodeListView.js
+4
-0
No files found.
src/app/debugger/debuggerUI/VmDebugger.js
View file @
f1881a37
...
@@ -75,9 +75,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
...
@@ -75,9 +75,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this
.
asmCode
=
new
CodeListView
()
this
.
asmCode
=
new
CodeListView
()
this
.
vmDebuggerLogic
.
event
.
register
(
'codeManagerChanged'
,
this
.
asmCode
.
changed
.
bind
(
this
.
asmCode
))
this
.
vmDebuggerLogic
.
event
.
register
(
'codeManagerChanged'
,
this
.
asmCode
.
changed
.
bind
(
this
.
asmCode
))
this
.
vmDebuggerLogic
.
event
.
register
(
'traceUnloaded'
,
function
()
{
this
.
vmDebuggerLogic
.
event
.
register
(
'traceUnloaded'
,
this
.
asmCode
.
reset
.
bind
(
this
.
asmCode
))
self
.
asmCode
.
changed
([],
''
,
-
1
)
})
this
.
calldataPanel
=
new
CalldataPanel
()
this
.
calldataPanel
=
new
CalldataPanel
()
_parentUI
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
_parentUI
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
...
...
src/app/debugger/debuggerUI/vmDebugger/CodeListView.js
View file @
f1881a37
...
@@ -52,6 +52,10 @@ CodeListView.prototype.indexChanged = function (index) {
...
@@ -52,6 +52,10 @@ CodeListView.prototype.indexChanged = function (index) {
this
.
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
this
.
codeView
.
offsetTop
)
this
.
codeView
.
scrollTop
=
this
.
itemSelected
.
offsetTop
-
parseInt
(
this
.
codeView
.
offsetTop
)
}
}
CodeListView
.
prototype
.
reset
=
function
()
{
this
.
changed
([],
''
,
-
1
)
}
CodeListView
.
prototype
.
changed
=
function
(
code
,
address
,
index
)
{
CodeListView
.
prototype
.
changed
=
function
(
code
,
address
,
index
)
{
if
(
this
.
address
===
address
)
{
if
(
this
.
address
===
address
)
{
return
this
.
indexChanged
(
index
)
return
this
.
indexChanged
(
index
)
...
...
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