|
|
|
@ -19,6 +19,7 @@ var UniversalDApp = require('./universal-dapp.js') |
|
|
|
|
var Debugger = require('./app/debugger') |
|
|
|
|
var FormalVerification = require('./app/formalVerification') |
|
|
|
|
var EventManager = require('./lib/eventManager') |
|
|
|
|
var StaticAnalysis = require('./app/staticanalysis/staticAnalysisView') |
|
|
|
|
|
|
|
|
|
// The event listener needs to be registered as early as possible, because the
|
|
|
|
|
// parent will send the message upon the "load" event.
|
|
|
|
@ -444,6 +445,9 @@ 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) |
|
|
|
|
$('#staticanalysisView').append(staticanalysis.render()) |
|
|
|
|
|
|
|
|
|
var autoCompile = document.querySelector('#autoCompile').checked |
|
|
|
|
|
|
|
|
|
document.querySelector('#autoCompile').addEventListener('change', function () { |
|
|
|
@ -609,7 +613,7 @@ var run = function () { |
|
|
|
|
selectedVersion = queryParams.get().version |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
loadVersion(selectedVersion) |
|
|
|
|
loadVersion(selectedVersion)
|
|
|
|
|
}).fail(function (xhr, text, err) { |
|
|
|
|
// loading failed for some reason, fall back to local compiler
|
|
|
|
|
$('#versionSelector').append(new Option('latest local version', 'builtin')) |
|
|
|
|