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.event = new EventManager()
this._listeners = {} this._listeners = {}
this._listeners['vyper'] = (data) => { 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.event.trigger('sendCompilationResult', [data.title, data.content, data.language, data.result])
} }
this._listeners['solidity'] = (file, source, languageVersion, data) => { this._listeners['solidity'] = (file, source, languageVersion, data) => {

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

Loading…
Cancel
Save