fix staticanalysis

pull/1/head
yann300 6 years ago
parent 14a1956144
commit 3a184e96e7
  1. 2
      src/app/components/plugin-manager-proxy.js
  2. 2
      src/app/staticanalysis/staticAnalysisView.js

@ -10,7 +10,7 @@ class PluginManagerProxy {
this.event = new EventManager()
this._listeners = {}
this._listeners['vyper'] = (data) => {
registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(data.language, data, data.content)
registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(data.language, data.result, data.content)
this.event.trigger('sendCompilationResult', [data.title, data.content, data.language, data.result])
}
this._listeners['solidity'] = (file, source, languageVersion, data) => {

@ -27,10 +27,10 @@ function staticAnalysisView (localRegistry) {
}
self._deps.pluginManager.event.register('sendCompilationResult', (file, source, languageVersion, data) => {
if (languageVersion.indexOf('soljson') !== 0) return
self.lastCompilationResult = null
self.lastCompilationSource = null
$('#staticanalysisresult').empty()
if (languageVersion.indexOf('soljson') !== 0) return
self.lastCompilationResult = data
self.lastCompilationSource = source
if (self.view.querySelector('#autorunstaticanalysis').checked) {

Loading…
Cancel
Save