Merge pull request #184 from yann300/importBug

Bug fix #183 #181
pull/1/head
yann300 8 years ago committed by GitHub
commit 5aeb13657d
  1. 2
      src/app/compiler.js
  2. 3
      src/app/ui-helper.js

@ -52,7 +52,7 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) {
files[utils.fileNameFromKey(editor.getCacheFile())] = input;
gatherImports(files, missingInputs, function (input, error) {
if (input === null) {
this.event.trigger('compilationFinished', [false, error, editor.getValue()]);
self.event.trigger('compilationFinished', [false, [error], editor.getValue()]);
} else {
var optimize = queryParams.get().optimize;
compileJSON(input, optimize ? 1 : 0);

@ -152,7 +152,8 @@ module.exports = {
details.append(assembly);
}
button.click(function () { this.detailsOpen[contractName] = !this.detailsOpen[contractName]; details.toggle(); });
var self = this;
button.click(function () { self.detailsOpen[contractName] = !self.detailsOpen[contractName]; details.toggle(); });
if (this.detailsOpen[contractName]) {
details.show();
}

Loading…
Cancel
Save