diff --git a/src/app/debugger/debugger.js b/src/app/debugger/debugger.js index 4a8c3c1859..5a132bf361 100644 --- a/src/app/debugger/debugger.js +++ b/src/app/debugger/debugger.js @@ -8,15 +8,14 @@ var globalRegistry = require('../../global/registry') /** * Manage remix and source highlighting */ -function Debugger (container, sourceHighlighter, localRegistry) { +function Debugger (sourceHighlighter) { var self = this this.event = new EventManager() this._components = { sourceHighlighter: sourceHighlighter } - // TODO: localRegistry doesn't seem to be actually used anywhere - this._components.registry = localRegistry || globalRegistry + this._components.registry = globalRegistry // dependencies this._deps = { offsetToLineColumnConverter: this._components.registry.get('offsettolinecolumnconverter').api, diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index 2fb6c987a6..2a3434fef8 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -5,7 +5,7 @@ var SourceHighlighter = require('../editor/sourceHighlighter') class DebuggerUI { constructor (container) { - this.transactionDebugger = new Debugger(container, new SourceHighlighter()) + this.transactionDebugger = new Debugger(new SourceHighlighter()) this.isActive = false this.debugger_ui = new OldEthdebuggerUI({debugger: this.transactionDebugger.debugger})