diff --git a/src/app/debugger/VmDebugger.js b/src/app/debugger/VmDebugger.js index 9158af372a..9c9358c75d 100644 --- a/src/app/debugger/VmDebugger.js +++ b/src/app/debugger/VmDebugger.js @@ -43,6 +43,15 @@ class VmDebuggerLogic { this._parent.event.register('traceUnloaded', function () { 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 () { diff --git a/src/app/debugger/debuggerUI/VmDebugger.js b/src/app/debugger/debuggerUI/VmDebugger.js index 4297eacbf1..24ad6ca5e6 100644 --- a/src/app/debugger/debuggerUI/VmDebugger.js +++ b/src/app/debugger/debuggerUI/VmDebugger.js @@ -54,8 +54,8 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca this.vmDebuggerLogic.event.register('traceManagerStorageUpdate', this.storagePanel.update.bind(this.storagePanel)) this.stepDetail = new StepDetail() - _parentUI.debugger.event.register('traceUnloaded', this.stepDetail.reset.bind(this.stepDetail)) - _parentUI.debugger.event.register('newTraceLoaded', this.stepDetail.reset.bind(this.stepDetail)) + this.vmDebuggerLogic.event.register('traceUnloaded', 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) { self.stepDetail.updateField('execution step', (error ? '-' : step)) @@ -107,7 +107,7 @@ function VmDebugger (_parentUI, _traceManager, _codeManager, _solidityProxy, _ca this.returnValuesPanel.data = {} this.vmDebuggerLogic.event.register('traceReturnValueUpdate', this.returnValuesPanel.update.bind(this.returnValuesPanel)) - this.fullStoragesChangesPanel = new FullStoragesChangesPanel(_parentUI, _traceManager) + this.fullStoragesChangesPanel = new FullStoragesChangesPanel() this.addresses = [] this.vmDebuggerLogic.event.register('traceAddressesUpdate', function (_addresses) { diff --git a/src/app/debugger/debuggerUI/vmDebugger/FullStoragesChanges.js b/src/app/debugger/debuggerUI/vmDebugger/FullStoragesChanges.js index 5ea6caec88..32c1cc15b7 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/FullStoragesChanges.js +++ b/src/app/debugger/debuggerUI/vmDebugger/FullStoragesChanges.js @@ -1,7 +1,7 @@ var DropdownPanel = require('./DropdownPanel') var yo = require('yo-yo') -function FullStoragesChanges (_parent, _traceManager) { +function FullStoragesChanges () { this.view this.basicPanel = new DropdownPanel('Full Storages Changes', {json: true}) }