diff --git a/src/app.js b/src/app.js index 017e1d3b05..4c18ec28b8 100644 --- a/src/app.js +++ b/src/app.js @@ -1,5 +1,4 @@ var $ = require('jquery'); -var web3 = require('./web3-adapter.js'); var utils = require('./app/utils'); var queryParams = require('./app/query-params'); @@ -407,7 +406,7 @@ var run = function() { return $.getJSON('https://api.github.com/repos/' + root + '/contents/' + path, cb); } - var compiler = new Compiler(web3, editor, handleGithubCall, $('#output'), getHidingRHP, updateFiles); + var compiler = new Compiler(editor, handleGithubCall, $('#output'), getHidingRHP, updateFiles); function setVersionText(text) { $('#version').text(text); diff --git a/src/app/compiler.js b/src/app/compiler.js index 2f0e800019..de66e3fa48 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -4,8 +4,8 @@ var Renderer = require('./renderer'); var Base64 = require('js-base64').Base64; -function Compiler(web3, editor, handleGithubCall, outputField, hidingRHP, updateFiles) { - var renderer = new Renderer(web3, editor, this, updateFiles); +function Compiler(editor, handleGithubCall, outputField, hidingRHP, updateFiles) { + var renderer = new Renderer(editor, this, updateFiles); var compileJSON; var compilerAcceptsMultipleFiles; diff --git a/src/app/renderer.js b/src/app/renderer.js index 6b78fad3b4..130a5db5b2 100644 --- a/src/app/renderer.js +++ b/src/app/renderer.js @@ -1,10 +1,11 @@ var $ = require('jquery'); +var web3 = require('../web3-adapter.js'); var UniversalDApp = require('../universal-dapp.js'); var utils = require('./utils'); -function Renderer(web3, editor, compiler, updateFiles) { +function Renderer(editor, compiler, updateFiles) { var detailsOpen = {}; var executionContext = 'vm';