fix listening on vyper event

pull/1/head
yann300 6 years ago
parent df84052555
commit 854a934c17
  1. 6
      src/app/components/plugin-manager-proxy.js

@ -9,9 +9,9 @@ class PluginManagerProxy {
constructor () {
this.event = new EventManager()
this._listeners = {}
this._listeners['vyper'] = (data) => {
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['vyper'] = (file, source, languageVersion, data) => {
registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(languageVersion, data, source)
this.event.trigger('sendCompilationResult', [file, source, languageVersion, data])
}
this._listeners['solidity'] = (file, source, languageVersion, data) => {
registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(languageVersion, data, source)

Loading…
Cancel
Save