remove unneded callbacks

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 73385468ec
commit 012b80292f
  1. 28
      src/app/debugger/debuggerUI/VmDebugger.js

@ -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) {
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

Loading…
Cancel
Save