pass compilerEvent instead of compiler

pull/1/head
yann300 8 years ago
parent 6b135401f6
commit 8a599b3345
  1. 2
      src/app.js
  2. 4
      src/app/staticanalysis/staticAnalysisView.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

@ -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

Loading…
Cancel
Save