From 474e5be3bdabbe32a931b10a8c2893cd9d9b7094 Mon Sep 17 00:00:00 2001 From: serapath Date: Fri, 18 May 2018 02:59:21 -0400 Subject: [PATCH] prepare CompileTab remove contractNames() --- src/app/tabs/compile-tab.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 8655a73c63..4e90513d88 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -138,6 +138,7 @@ class CompileTab { ------------------------------------------------ */ function contractNames (appAPI, appEvents, opts) { + /* eslint-disable */ var contractsDetails = {} appEvents.compiler.register('compilationFinished', function (success, data, source) { @@ -181,7 +182,7 @@ class CompileTab { } }) - var el = yo` + var contractEl = yo`
@@ -215,7 +216,7 @@ class CompileTab { } function details () { - var select = el.querySelector('select') + var select = contractEl.querySelector('select') if (select.children.length > 0 && select.selectedIndex >= 0) { var contractName = select.children[select.selectedIndex].innerHTML @@ -303,7 +304,8 @@ class CompileTab { } } } - return el + return contractEl + /* eslint-enable */ } return { render () { return el } } }