Commit ee5dc0a4 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

fix last event in vmdebugger still not using vmdebugger class; remove unneded params

parent 32f6fd32
...@@ -43,6 +43,15 @@ class VmDebuggerLogic { ...@@ -43,6 +43,15 @@ class VmDebuggerLogic {
this._parent.event.register('traceUnloaded', function () { this._parent.event.register('traceUnloaded', function () {
self.event.trigger('traceUnloaded') self.event.trigger('traceUnloaded')
}) })
// TODO: is it the same?
this._parentUI.debugger.event.register('traceUnloaded', function () {
self.event.trigger('traceUnloaded')
})
this._parentUI.debugger.event.register('newTraceLoaded', function () {
self.event.trigger('newTraceLoaded')
})
} }
listenToCodeManagerEvents () { listenToCodeManagerEvents () {
......
...@@ -54,8 +54,8 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca ...@@ -54,8 +54,8 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this.vmDebuggerLogic.event.register('traceManagerStorageUpdate', this.storagePanel.update.bind(this.storagePanel)) this.vmDebuggerLogic.event.register('traceManagerStorageUpdate', this.storagePanel.update.bind(this.storagePanel))
this.stepDetail = new StepDetail() this.stepDetail = new StepDetail()
_parentUI.debugger.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail)) this.vmDebuggerLogic.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail))
_parentUI.debugger.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail)) this.vmDebuggerLogic.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail))
this.vmDebuggerLogic.event.register('traceCurrentStepUpdate', function (error, step) { this.vmDebuggerLogic.event.register('traceCurrentStepUpdate', function (error, step) {
self.stepDetail.updateField('execution step', (error ? '-' : step)) self.stepDetail.updateField('execution step', (error ? '-' : step))
...@@ -107,7 +107,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca ...@@ -107,7 +107,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca
this.returnValuesPanel.data = {} this.returnValuesPanel.data = {}
this.vmDebuggerLogic.event.register('traceReturnValueUpdate', this.returnValuesPanel.update.bind(this.returnValuesPanel)) this.vmDebuggerLogic.event.register('traceReturnValueUpdate', this.returnValuesPanel.update.bind(this.returnValuesPanel))
this.fullStoragesChangesPanel = new FullStoragesChangesPanel(_parentUI, _traceManager) this.fullStoragesChangesPanel = new FullStoragesChangesPanel()
this.addresses = [] this.addresses = []
this.vmDebuggerLogic.event.register('traceAddressesUpdate', function (_addresses) { this.vmDebuggerLogic.event.register('traceAddressesUpdate', function (_addresses) {
......
var DropdownPanel = require('./DropdownPanel') var DropdownPanel = require('./DropdownPanel')
var yo = require('yo-yo') var yo = require('yo-yo')
function FullStoragesChanges (_parent, _traceManager) { function FullStoragesChanges () {
this.view this.view
this.basicPanel = new DropdownPanel('Full Storages Changes', {json: true}) this.basicPanel = new DropdownPanel('Full Storages Changes', {json: true})
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment