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

cleanup

parent 41a598eb
......@@ -65,7 +65,7 @@ function Debugger (sourceHighlighter) {
})
this.debugger.event.register('traceUnloaded', this, function () {
self._components.sourceHighlighter.currentSourceLocation(null)
self.sourceHighlighter.currentSourceLocation(null)
self.event.trigger('debuggerStatus', [false])
})
......@@ -86,9 +86,9 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
self.debugger.callTree.sourceLocationTracker.getSourceLocationFromVMTraceIndex(address, index, self._deps.compiler.lastCompilationResult.data.contracts, function (error, rawLocation) {
if (!error && self._deps.compiler.lastCompilationResult && self._deps.compiler.lastCompilationResult.data) {
var lineColumnPos = self._deps.offsetToLineColumnConverter.offsetToLineColumn(rawLocation, rawLocation.file, self._deps.compiler.lastCompilationResult.source.sources)
self._components.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
self.sourceHighlighter.currentSourceLocation(lineColumnPos, rawLocation)
} else {
self._components.sourceHighlighter.currentSourceLocation(null)
self.sourceHighlighter.currentSourceLocation(null)
}
})
})
......
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