Commit 0ec2035b authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #441 from ethereum/save-cleanup

Always save before compiling
parents db187ef3 21fc2553
...@@ -694,11 +694,12 @@ var run = function () { ...@@ -694,11 +694,12 @@ var run = function () {
}) })
function runCompiler () { function runCompiler () {
var files = {} editorSyncFile()
if (currentFile) { if (currentFile) {
var target = currentFile var target = currentFile
files[target] = editor.get(currentFile) var sources = {}
compiler.compile(files, target) sources[target] = files.get(target)
compiler.compile(sources, target)
} }
} }
......
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