Commit 2a0b6c71 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

remove unnecessary event

parent 2d85ad19
...@@ -57,6 +57,7 @@ class DebuggerUI { ...@@ -57,6 +57,7 @@ class DebuggerUI {
self.debugger.codeManager.resolveStep(index, self.tx) self.debugger.codeManager.resolveStep(index, self.tx)
self.transactionDebugger.step_manager.event.trigger('indexChanged', [index]) self.transactionDebugger.step_manager.event.trigger('indexChanged', [index])
self.transactionDebugger.vmDebuggerLogic.event.trigger('indexChanged', [index]) self.transactionDebugger.vmDebuggerLogic.event.trigger('indexChanged', [index])
self.transactionDebugger.registerAndHighlightCodeItem(index)
}) })
container.appendChild(this.render()) container.appendChild(this.render())
...@@ -94,10 +95,6 @@ class DebuggerUI { ...@@ -94,10 +95,6 @@ class DebuggerUI {
self.stepManager.stepManager.jumpTo(step) self.stepManager.stepManager.jumpTo(step)
}) })
this.event.register('indexChanged', function (index) {
self.transactionDebugger.registerAndHighlightCodeItem(index)
})
this.transactionDebugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) { this.transactionDebugger.event.register('newSourceLocation', function (lineColumnPos, rawLocation) {
self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation) self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
}) })
......
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