From a9da67aa982b533915900fd0e454c323238b5eef Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 31 Oct 2016 14:00:26 +0000 Subject: [PATCH] Move editor.clearAnnotations from the compiler to app --- src/app.js | 4 ++++ src/app/compiler.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index e343cee2c6..a806b350af 100644 --- a/src/app.js +++ b/src/app.js @@ -522,6 +522,10 @@ var run = function () { } }) + compiler.event.register('compilationStarted', this, function () { + editor.clearAnnotations() + }) + function startdebugging (txHash) { transactionDebugger.debug(txHash) selectTab($('ul#options li.debugView')) diff --git a/src/app/compiler.js b/src/app/compiler.js index a3419437e9..157b15ae8f 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -38,7 +38,6 @@ function Compiler (editor, handleGithubCall) { } var compile = function () { - editor.clearAnnotations() self.event.trigger('compilationStarted', []) var input = editor.getValue()