diff --git a/src/app.js b/src/app.js index da1b234e69..e32aaa6acd 100644 --- a/src/app.js +++ b/src/app.js @@ -445,7 +445,7 @@ var run = function () { var renderer = new Renderer(editor, executionContext.web3(), updateFiles, udapp, executionContext, formalVerification.event, compiler.event) // eslint-disable-line - var staticanalysis = new StaticAnalysis(compiler, renderer) + var staticanalysis = new StaticAnalysis(compiler.event, renderer) $('#staticanalysisView').append(staticanalysis.render()) var autoCompile = document.querySelector('#autoCompile').checked diff --git a/src/app/staticanalysis/staticAnalysisView.js b/src/app/staticanalysis/staticAnalysisView.js index b6be01dc18..e611cb8efb 100644 --- a/src/app/staticanalysis/staticAnalysisView.js +++ b/src/app/staticanalysis/staticAnalysisView.js @@ -3,14 +3,14 @@ var StaticAnalysisRunner = require('./staticAnalysisRunner.js') var yo = require('yo-yo') var $ = require('jquery') -function staticAnalysisView (compiler, renderer) { +function staticAnalysisView (compilerEvent, renderer) { this.view = null this.renderer = renderer this.runner = new StaticAnalysisRunner() this.modulesView = renderModules(this.runner.modules()) this.lastASTs = null var self = this - compiler.event.register('compilationFinished', function (success, data, source) { + compilerEvent.register('compilationFinished', function (success, data, source) { self.lastASTs = null if (success) { self.lastASTs = data.sources