aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2014-11-03 10:56:45 +0800
committerCorey Farwell <coreyf@rwell.org>2014-11-03 10:56:45 +0800
commit51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9 (patch)
tree5e67819aa6aa3de166c052abbf82edcdbf64084a /main.js
parentb773e5749077447718b12dc815a4794b0dc699b3 (diff)
downloadgo-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar.gz
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar.bz2
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar.lz
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar.xz
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.tar.zst
go-tangerine-51d79f3e3b4876dd3b8925e8f10cc2f10aa16ff9.zip
Fix JSHint errors
Diffstat (limited to 'main.js')
-rw-r--r--main.js26
1 files changed, 11 insertions, 15 deletions
diff --git a/main.js b/main.js
index 1f609220b..320c4e1a2 100644
--- a/main.js
+++ b/main.js
@@ -1,6 +1,6 @@
(function(window) {
function isPromise(o) {
- return o instanceof Promise
+ return o instanceof Promise;
}
function flattenPromise (obj) {
@@ -40,7 +40,7 @@
}
return Promise.resolve(obj);
- };
+ }
var ethMethods = function () {
var blockCall = function (args) {
@@ -171,7 +171,7 @@
}).catch(function (err) {
console.error(err);
});
- }
+ };
}
Object.defineProperty(obj, property.name, proto);
});
@@ -196,8 +196,8 @@
var str = "";
var i = 0, l = hex.length;
for(; i < l; i+=2) {
- var code = hex.charCodeAt(i)
- if(code == 0) {
+ var code = hex.charCodeAt(i);
+ if(code === 0) {
break;
}
@@ -216,22 +216,18 @@
var hex = this.toHex(str);
while(hex.length < pad*2)
hex += "00";
- return hex
+ return hex;
},
eth: {
- prototype: Object(),
watch: function (params) {
return new Filter(params, ethWatch);
},
},
- db: {
- prototype: Object()
- },
+ db: {},
shh: {
- prototype: Object(),
watch: function (params) {
return new Filter(params, shhWatch);
}
@@ -243,7 +239,7 @@
}
web3._events[event][id] = cb;
- return this
+ return this;
},
off: function(event, id) {
@@ -251,7 +247,7 @@
delete web3._events[event][id];
}
- return this
+ return this;
},
trigger: function(event, id, data) {
@@ -376,7 +372,7 @@
Filter.prototype.arrived = function(callback) {
this.changed(callback);
- }
+ };
Filter.prototype.changed = function(callback) {
var self = this;
@@ -416,7 +412,7 @@
if(data._id) {
var cb = web3._callbacks[data._id];
if (cb) {
- cb.call(this, data.data)
+ cb.call(this, data.data);
delete web3._callbacks[data._id];
}
}