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
4ec2a828
Commit
4ec2a828
authored
Oct 06, 2015
by
d11e9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
semicolon up
parent
c08bb7ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
universal-dapp.js
libs/universal-dapp.js
+10
-10
No files found.
libs/universal-dapp.js
View file @
4ec2a828
...
...
@@ -138,10 +138,10 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
.
append
(
$
(
'<span class="args" />'
).
text
(
JSON
.
stringify
(
response
.
args
,
null
,
2
)
)
)
.
append
(
$close
);
$events
.
append
(
$event
)
$events
.
append
(
$event
)
;
})
}
$instance
.
append
(
$title
)
$instance
.
append
(
$title
)
;
$
.
each
(
abi
,
function
(
i
,
funABI
)
{
if
(
funABI
.
type
!=
'function'
)
return
;
...
...
@@ -150,7 +150,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
address
:
address
}));
});
(
$el
||
$createInterface
).
append
(
$instance
.
append
(
$events
)
)
(
$el
||
$createInterface
).
append
(
$instance
.
append
(
$events
)
)
;
}
if
(
!
address
||
!
$target
)
{
...
...
@@ -213,8 +213,8 @@ UniversalDApp.prototype.getCallButton = function(args) {
var
getOutput
=
function
()
{
var
values
=
Array
.
prototype
.
slice
.
call
(
arguments
);
var
$result
=
$
(
'<div class="result" />'
);
var
$close
=
$
(
'<div class="udapp-close" />'
)
$close
.
click
(
function
(){
$result
.
remove
();
}
)
var
$close
=
$
(
'<div class="udapp-close" />'
)
;
$close
.
click
(
function
(){
$result
.
remove
();
}
);
$result
.
append
(
$close
);
for
(
var
v
in
values
)
{
$result
.
append
(
values
[
v
]
);
}
return
$result
;
...
...
@@ -229,7 +229,7 @@ UniversalDApp.prototype.getCallButton = function(args) {
var
$result
=
getOutput
(
$
(
'<a class="waiting" href="#" title="Waiting for transaction to be mined.">Polling for tx receipt...</a>'
)
);
if
(
lookupOnly
&&
!
inputs
.
length
)
{
$outputOverride
.
html
(
$result
)
$outputOverride
.
html
(
$result
)
;
}
else
{
outputSpan
.
append
(
$result
);
}
...
...
@@ -252,8 +252,8 @@ UniversalDApp.prototype.getCallButton = function(args) {
function
testResult
(
err
,
address
)
{
if
(
!
err
&&
!
address
)
{
setTimeout
(
function
(){
tryTillResponse
(
txhash
,
done
)
},
500
)
}
else
done
(
err
,
address
)
setTimeout
(
function
(){
tryTillResponse
(
txhash
,
done
)
},
500
)
;
}
else
done
(
err
,
address
)
;
}
}
...
...
@@ -312,8 +312,8 @@ UniversalDApp.prototype.runTx = function( data, args, cb) {
data
:
data
,
gas
:
1000000
},
function
(
err
,
resp
)
{
cb
(
err
,
resp
)
})
cb
(
err
,
resp
)
;
})
;
}
}
else
{
try
{
...
...
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