semicolon up

pull/1/head
d11e9 10 years ago
parent c08bb7ce44
commit 4ec2a82806
  1. 20
      libs/universal-dapp.js

@ -138,10 +138,10 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
.append( $('<span class="args" />').text( JSON.stringify(response.args, null, 2) ) ) .append( $('<span class="args" />').text( JSON.stringify(response.args, null, 2) ) )
.append( $close ); .append( $close );
$events.append( $event ) $events.append( $event );
}) })
} }
$instance.append( $title ) $instance.append( $title );
$.each(abi, function(i, funABI) { $.each(abi, function(i, funABI) {
if (funABI.type != 'function') return; if (funABI.type != 'function') return;
@ -150,7 +150,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
address: address address: address
})); }));
}); });
($el || $createInterface ).append( $instance.append( $events ) ) ($el || $createInterface ).append( $instance.append( $events ) );
} }
if (!address || !$target) { if (!address || !$target) {
@ -213,8 +213,8 @@ UniversalDApp.prototype.getCallButton = function(args) {
var getOutput = function() { var getOutput = function() {
var values = Array.prototype.slice.call(arguments); var values = Array.prototype.slice.call(arguments);
var $result = $('<div class="result" />'); var $result = $('<div class="result" />');
var $close = $('<div class="udapp-close" />') var $close = $('<div class="udapp-close" />');
$close.click( function(){ $result.remove(); } ) $close.click( function(){ $result.remove(); } );
$result.append( $close ); $result.append( $close );
for( var v in values ) { $result.append( values[v] ); } for( var v in values ) { $result.append( values[v] ); }
return $result; 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>') ); var $result = getOutput( $('<a class="waiting" href="#" title="Waiting for transaction to be mined.">Polling for tx receipt...</a>') );
if (lookupOnly && !inputs.length) { if (lookupOnly && !inputs.length) {
$outputOverride.html( $result ) $outputOverride.html( $result );
} else { } else {
outputSpan.append( $result ); outputSpan.append( $result );
} }
@ -252,8 +252,8 @@ UniversalDApp.prototype.getCallButton = function(args) {
function testResult (err, address) { function testResult (err, address) {
if (!err && !address) { if (!err && !address) {
setTimeout( function(){ tryTillResponse(txhash, done) }, 500) setTimeout( function(){ tryTillResponse(txhash, done) }, 500);
} else done( err, address ) } else done( err, address );
} }
} }
@ -312,8 +312,8 @@ UniversalDApp.prototype.runTx = function( data, args, cb) {
data: data, data: data,
gas: 1000000 gas: 1000000
}, function(err, resp) { }, function(err, resp) {
cb( err, resp ) cb( err, resp );
}) });
} }
} else { } else {
try { try {

Loading…
Cancel
Save