From 158690393f34aae2c74443806f54ad80ab174a0b Mon Sep 17 00:00:00 2001 From: serapath Date: Sun, 20 May 2018 00:50:52 -0400 Subject: [PATCH] CompileTab: refactor element contractEl --- src/app/tabs/compile-tab.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index cfdbc69a65..8f487b607f 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -25,7 +25,8 @@ module.exports = class CompileTab { compileIcon: null, compileContainer: null, errorContainer: null, - contractNames: null + contractNames: null, + contractEl: null } self.data = { autoCompile: self._opts.config.get('autoCompile'), @@ -34,7 +35,6 @@ module.exports = class CompileTab { maxTime: 1000, timeout: 300 } - self._events.editor.register('contentChanged', scheduleCompilation) self._events.editor.register('sessionSwitched', scheduleCompilation) function scheduleCompilation () { @@ -143,7 +143,7 @@ module.exports = class CompileTab { ` self._view.errorContainer = yo`
` self._view.contractNames = yo`` - var contractEl = yo` + self._view.contractEl = yo`
${self._view.contractNames}
@@ -154,7 +154,7 @@ module.exports = class CompileTab { var el = yo`
${self._view.compileContainer} - ${contractEl} + ${self._view.contractEl} ${self._view.errorContainer}
` function updateAutoCompile (event) { self._opts.config.set('autoCompile', self._view.autoCompile.checked) }