Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
1ea66f16
Commit
1ea66f16
authored
Aug 25, 2017
by
yann300
Committed by
GitHub
Aug 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #722 from ethereum/fixAutoCompile
Fix autocompile
parents
e7ca17a9
4a74018a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
compile-tab.js
src/app/tabs/compile-tab.js
+4
-4
contracts.js
test-browser/helpers/contracts.js
+2
-2
No files found.
src/app/tabs/compile-tab.js
View file @
1ea66f16
...
@@ -183,12 +183,12 @@ function compileTab (container, appAPI, appEvents, opts) {
...
@@ -183,12 +183,12 @@ function compileTab (container, appAPI, appEvents, opts) {
// ----------------- autoCompile -----------------
// ----------------- autoCompile -----------------
var
autoCompileInput
=
compileContainer
.
querySelector
(
'#autoCompile'
)
var
autoCompileInput
=
compileContainer
.
querySelector
(
'#autoCompile'
)
var
autoCompile
=
true
if
(
appAPI
.
config
.
exists
(
'autoCompile'
))
{
if
(
appAPI
.
config
.
exists
(
'autoCompile'
))
{
var
autoCompile
=
appAPI
.
config
.
get
(
'autoCompile'
)
autoCompile
=
appAPI
.
config
.
get
(
'autoCompile'
)
if
(
autoCompile
)
{
autoCompileInput
.
setAttribute
(
'checked'
,
autoCompile
)
}
}
}
appAPI
.
config
.
set
(
'autoCompile'
,
autoCompile
)
autoCompileInput
.
setAttribute
(
'checked'
,
autoCompile
)
autoCompileInput
.
addEventListener
(
'change'
,
function
()
{
autoCompileInput
.
addEventListener
(
'change'
,
function
()
{
appAPI
.
config
.
set
(
'autoCompile'
,
autoCompileInput
.
checked
)
appAPI
.
config
.
set
(
'autoCompile'
,
autoCompileInput
.
checked
)
...
...
test-browser/helpers/contracts.js
View file @
1ea66f16
...
@@ -12,8 +12,8 @@ function checkCompiledContracts (browser, compiled, callback) {
...
@@ -12,8 +12,8 @@ function checkCompiledContracts (browser, compiled, callback) {
return
null
return
null
}
else
{
}
else
{
var
ret
=
[]
var
ret
=
[]
for
(
var
c
in
contracts
)
{
for
(
var
c
=
0
;
c
<
contracts
.
length
;
c
++
)
{
ret
.
push
(
contracts
[
c
].
innerText
)
ret
.
push
(
contracts
[
c
].
querySelector
(
'div'
).
innerHTML
)
}
}
return
ret
return
ret
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment