Skip to content

Commit

Permalink
Merge pull request ethereum#441 from ethereum/save-cleanup
Browse files Browse the repository at this point in the history
Always save before compiling
  • Loading branch information
chriseth authored Feb 23, 2017
2 parents db187ef + 21fc255 commit 0ec2035
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,12 @@ var run = function () {
})

function runCompiler () {
var files = {}
editorSyncFile()
if (currentFile) {
var target = currentFile
files[target] = editor.get(currentFile)
compiler.compile(files, target)
var sources = {}
sources[target] = files.get(target)
compiler.compile(sources, target)
}
}

Expand Down

0 comments on commit 0ec2035

Please sign in to comment.