Commit a9da67aa authored by Alex Beregszaszi's avatar Alex Beregszaszi

Move editor.clearAnnotations from the compiler to app

parent 0d532f00
...@@ -522,6 +522,10 @@ var run = function () { ...@@ -522,6 +522,10 @@ var run = function () {
} }
}) })
compiler.event.register('compilationStarted', this, function () {
editor.clearAnnotations()
})
function startdebugging (txHash) { function startdebugging (txHash) {
transactionDebugger.debug(txHash) transactionDebugger.debug(txHash)
selectTab($('ul#options li.debugView')) selectTab($('ul#options li.debugView'))
......
...@@ -38,7 +38,6 @@ function Compiler (editor, handleGithubCall) { ...@@ -38,7 +38,6 @@ function Compiler (editor, handleGithubCall) {
} }
var compile = function () { var compile = function () {
editor.clearAnnotations()
self.event.trigger('compilationStarted', []) self.event.trigger('compilationStarted', [])
var input = editor.getValue() var input = editor.getValue()
......
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