Commit 96c8d644 authored by yann300's avatar yann300

listen on activation

parent bf95e600
......@@ -54,8 +54,14 @@ class CompileTab {
this._deps.config,
this.queryParams
)
}
activate () {
this.listenToEvents()
this.compilerContainer.activate()
}
deactivate () {
}
/************
......
......@@ -25,8 +25,6 @@ class CompilerContainer {
defaultVersion: 'soljson-v0.5.1+commit.c8a2cb62.js', // this default version is defined: in makeMockCompiler (for browser test) and in package.json (downloadsolc_root) for the builtin compiler
baseurl: 'https://solc-bin.ethereum.org/bin'
}
this.listenToEvents()
}
/**
......@@ -38,6 +36,13 @@ class CompilerContainer {
yo.update(this._view.compilationButton, button)
}
deactivate () {
}
activate () {
this.listenToEvents()
}
listenToEvents () {
this.editor.event.register('contentChanged', this.scheduleCompilation.bind(this))
this.editor.event.register('sessionSwitched', this.scheduleCompilation.bind(this))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment