Browse Source

reindent lines in eth.js

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
bd42cb12b0
  1. 21
      libethrpc/eth.js

21
libethrpc/eth.js

@ -2,10 +2,10 @@
if (typeof(window.eth) === "undefined")
{
if (typeof(require) !== "undefined")
if (typeof(require) !== "undefined")
require( ['ethString'], function() {} )
else if (typeof(String.prototype.pad) === "undefined")
{
else if (typeof(String.prototype.pad) === "undefined")
{
var scriptTag = document.getElementsByTagName('script');
scriptTag = scriptTag[scriptTag.length - 1];
var scriptPath = scriptTag.src;
@ -14,9 +14,10 @@ else if (typeof(String.prototype.pad) === "undefined")
var slash = '"><'+'/script>';
document.write(start + 'BigInteger.js' + slash);
document.write(start + 'ethString.js' + slash);
}
}
var spec = [
var spec = [
{ "method": "coinbase", "params": null, "order": [], "returns" : "" },
{ "method": "setCoinbase", "params": { "address": "" }, "order": ["address"], "returns" : true },
{ "method": "listening", "params": null, "order": [], "returns" : false },
@ -56,9 +57,9 @@ var spec = [
{ "method": "toFixed", "params": {"s": 0.0}, "order": ["s"], "returns" : ""},
{ "method": "fromFixed", "params": {"s": ""}, "order": ["s"], "returns" : 0.0},
{ "method": "offset", "params": {"s": "", "o": 0}, "order": ["s", "o"], "returns" : ""}
];
];
window.eth = (function ethScope() {
window.eth = (function ethScope() {
var m_reqId = 0
var ret = {}
function reformat(m, d) { return m == "lll" ? d.bin() : d; };
@ -142,7 +143,8 @@ window.eth = (function ethScope() {
{ name: "keys", getter: "keys" },
{ name: "peerCount", getter: "peerCount" },
{ name: "defaultBlock", getter: "defaultBlock" },
{ name: "number", getter: "number" }];
{ name: "number", getter: "number" }
];
properties.forEach(function (property) {
var p = {};
@ -257,7 +259,6 @@ window.eth = (function ethScope() {
setupWatch(ret);
return ret;
}());
}());
}

Loading…
Cancel
Save