add comments

pull/3094/head
yann300 7 years ago
parent 2866c43753
commit 9d667a9134
  1. 5
      src/app.js

@ -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()

Loading…
Cancel
Save