Commit 5aeb1365 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #184 from yann300/importBug

Bug fix #183 #181
parents dc6bb872 9b56f2be
......@@ -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();
}
......
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