Commit b5118a3f authored by yann300's avatar yann300

add comments

parent 3d04df42
...@@ -615,18 +615,21 @@ Please make a backup of your contracts and start using http://remix.ethereum.org ...@@ -615,18 +615,21 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}, 5000) }, 5000)
} }
// auto save the file when content changed
editor.event.register('contentChanged', editorOnChange) editor.event.register('contentChanged', editorOnChange)
// in order to save the file when switching // save the file when switching
editor.event.register('sessionSwitched', editorOnChange) editor.event.register('sessionSwitched', editorOnChange)
executionContext.event.register('contextChanged', this, function (context) { executionContext.event.register('contextChanged', this, function (context) {
self.runCompiler() self.runCompiler()
}) })
// rerun the compiler when the environement changed
executionContext.event.register('web3EndpointChanged', this, function (context) { executionContext.event.register('web3EndpointChanged', this, function (context) {
self.runCompiler() self.runCompiler()
}) })
// check init query parameters from the URL once the compiler is loaded
compiler.event.register('compilerLoaded', this, function (version) { compiler.event.register('compilerLoaded', this, function (version) {
previousInput = '' previousInput = ''
self.runCompiler() self.runCompiler()
......
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