From 8a599b33450f7950ae08d301d1f263c94a1112a8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 8 Nov 2016 11:49:39 +0100 Subject: [PATCH] pass compilerEvent instead of compiler --- src/app.js | 2 +- src/app/staticanalysis/staticAnalysisView.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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