Skip to content

Commit

Permalink
Introduce compile button
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 7, 2016
1 parent cbb7540 commit 3cea49f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<div class="crow">
<label for="editorWrap"><input id="editorWrap" type="checkbox">Text Wrap</label>
<label for="optimize"><input id="optimize" type="checkbox">Enable Optimization</label>
<button id="compile" title="Compile source code"><i class="fa fa-cog"></i> Compile</button>
</div>
</div>
<div id="publishView">
Expand Down
4 changes: 4 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ var run = function () {

var renderer = new Renderer(editor, executionContext.web3(), updateFiles, udapp, executionContext, formalVerification.event, compiler.event); // eslint-disable-line

$('#compile').click(function () {
compiler.compile();
});

executionContext.event.register('contextChanged', this, function (context) {
compiler.compile();
});
Expand Down

0 comments on commit 3cea49f

Please sign in to comment.