From b5118a3f53d5df6e9edc32ed4cc5569ec2a35379 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 28 Jun 2018 14:30:07 +0200 Subject: [PATCH] add comments --- src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 0463565f83..e10b1a199b 100644 --- a/src/app.js +++ b/src/app.js @@ -615,18 +615,21 @@ Please make a backup of your contracts and start using http://remix.ethereum.org }, 5000) } + // auto save the file when content changed editor.event.register('contentChanged', editorOnChange) - // in order to save the file when switching + // save the file when switching editor.event.register('sessionSwitched', editorOnChange) executionContext.event.register('contextChanged', this, function (context) { self.runCompiler() }) + // rerun the compiler when the environement changed executionContext.event.register('web3EndpointChanged', this, function (context) { self.runCompiler() }) + // check init query parameters from the URL once the compiler is loaded compiler.event.register('compilerLoaded', this, function (version) { previousInput = '' self.runCompiler()