From dc4a723a8936e46c8ba5e1cccb1c17586d8e93d0 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 26 Dec 2018 11:17:12 -0500 Subject: [PATCH] remove unneded _components var --- src/universal-dapp.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 7faeec2a5f..88bc0c77c5 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -14,14 +14,11 @@ var executionContext = remixLib.execution.executionContext function UniversalDApp (globalRegistry) { this.event = new EventManager() - var self = this - self.data = {} - self._components = {} - self._components.registry = globalRegistry - self._deps = { - config: self._components.registry.get('config').api, - compilersartefacts: self._components.registry.get('compilersartefacts').api, - logCallback: self._components.registry.get('logCallback').api + this.data = {} + this._deps = { + config: globalRegistry.get('config').api, + compiler: globalRegistry.get('compiler').api, + logCallback: globalRegistry.get('logCallback').api } executionContext.event.register('contextChanged', this, function (context) { self.resetEnvironment()