Commit 51ee77d8 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

remove unneded callbacks

parent 7302279f
...@@ -80,26 +80,14 @@ function VmDebugger (vmDebuggerLogic) { ...@@ -80,26 +80,14 @@ function VmDebugger (vmDebuggerLogic) {
}) })
this.solidityState = new SolidityState() this.solidityState = new SolidityState()
this.vmDebuggerLogic.event.register('solidityState', this, function (state) { this.vmDebuggerLogic.event.register('solidityState', this.solidityState.update.bind(this.solidityState))
self.solidityState.update(state) this.vmDebuggerLogic.event.register('solidityStateMessage', this.solidityState.setMessage.bind(this.solidityState))
}) this.vmDebuggerLogic.event.register('solidityStateUpdating', this.solidityState.setUpdating.bind(this.solidityState))
this.vmDebuggerLogic.event.register('solidityStateMessage', this, function (message) {
self.solidityState.setMessage(message)
})
this.vmDebuggerLogic.event.register('solidityStateUpdating', this, function () {
self.solidityState.setUpdating()
})
this.solidityLocals = new SolidityLocals() this.solidityLocals = new SolidityLocals()
this.vmDebuggerLogic.event.register('solidityLocals', this, function (state) { this.vmDebuggerLogic.event.register('solidityLocals', this.solidityLocals.update.bind(this.solidityLocals))
self.solidityLocals.update(state) this.vmDebuggerLogic.event.register('solidityLocalsMessage', this.solidityLocals.setMessage.bind(this.solidityLocals))
}) this.vmDebuggerLogic.event.register('solidityLocalsUpdating', this.solidityLocals.setUpdating.bind(this.solidityLocals))
this.vmDebuggerLogic.event.register('solidityLocalsMessage', this, function (message) {
self.solidityLocals.setMessage(message)
})
this.vmDebuggerLogic.event.register('solidityLocalsUpdating', this, function () {
self.solidityLocals.setUpdating()
})
this.returnValuesPanel = new DropdownPanel('Return Value', {json: true}) this.returnValuesPanel = new DropdownPanel('Return Value', {json: true})
this.returnValuesPanel.data = {} this.returnValuesPanel.data = {}
...@@ -112,9 +100,7 @@ function VmDebugger (vmDebuggerLogic) { ...@@ -112,9 +100,7 @@ function VmDebugger (vmDebuggerLogic) {
self.fullStoragesChangesPanel.update({}) self.fullStoragesChangesPanel.update({})
}) })
this.vmDebuggerLogic.event.register('traceStorageUpdate', function (data) { this.vmDebuggerLogic.event.register('traceStorageUpdate', this.fullStoragesChangesPanel.update.bind(this.fullStoragesChangesPanel))
self.fullStoragesChangesPanel.update(data)
})
this.vmDebuggerLogic.event.register('newTrace', () => { this.vmDebuggerLogic.event.register('newTrace', () => {
if (!self.view) return if (!self.view) return
......
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