aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-11-15 00:08:29 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-11-15 00:08:29 +0800
commit6b8b1259e2e1a21c19198eb82582a7aafc29b12b (patch)
tree467abcae16f09578b35d2c11a55ca528e0d9c5ba
parentc966a5c17e69fe81f42fa73664f59b5d440f3829 (diff)
downloadgo-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar.gz
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar.bz2
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar.lz
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar.xz
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.tar.zst
go-tangerine-6b8b1259e2e1a21c19198eb82582a7aafc29b12b.zip
Revert "Run JSHint on all code using Travis CI"
-rw-r--r--.travis.yml7
-rw-r--r--README.md2
-rw-r--r--httprpc.js8
-rw-r--r--main.js26
-rw-r--r--qt.js2
-rw-r--r--websocket.js2
6 files changed, 21 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 294073ce0..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-node_js:
- - "0.11"
-install:
- - "npm install jshint"
-script:
- - "jshint *.js"
diff --git a/README.md b/README.md
index 7ff5cbb88..86e2969be 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,5 @@
# Ethereum JavaScript API
-[![Build Status](https://travis-ci.org/ethereum/ethereum.js.svg?branch=master)](https://travis-ci.org/ethereum/ethereum.js)
-
This is the Ethereum compatible JavaScript API using `Promise`s
which implements the [Generic JSON RPC](https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC) spec.
diff --git a/httprpc.js b/httprpc.js
index f7f870d9d..085b4693d 100644
--- a/httprpc.js
+++ b/httprpc.js
@@ -10,8 +10,8 @@
method: object.call,
params: object.args,
id: object._id
- };
- }
+ }
+ };
function formatJsonRpcMessage(message) {
var object = JSON.parse(message);
@@ -20,7 +20,7 @@
_id: object.id,
data: object.result
};
- }
+ };
HttpRpcProvider.prototype.sendRequest = function (payload, cb) {
var data = formatJsonRpcObject(payload);
@@ -32,7 +32,7 @@
if (request.readyState === 4 && cb) {
cb(request);
}
- };
+ }
};
HttpRpcProvider.prototype.send = function (payload) {
diff --git a/main.js b/main.js
index 320c4e1a2..1f609220b 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,18 +216,22 @@
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: {},
+ db: {
+ prototype: Object()
+ },
shh: {
+ prototype: Object(),
watch: function (params) {
return new Filter(params, shhWatch);
}
@@ -239,7 +243,7 @@
}
web3._events[event][id] = cb;
- return this;
+ return this
},
off: function(event, id) {
@@ -247,7 +251,7 @@
delete web3._events[event][id];
}
- return this;
+ return this
},
trigger: function(event, id, data) {
@@ -372,7 +376,7 @@
Filter.prototype.arrived = function(callback) {
this.changed(callback);
- };
+ }
Filter.prototype.changed = function(callback) {
var self = this;
@@ -412,7 +416,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];
}
}
diff --git a/qt.js b/qt.js
index 2f532f942..644c37737 100644
--- a/qt.js
+++ b/qt.js
@@ -7,7 +7,7 @@
self.handlers.forEach(function (handler) {
handler.call(self, JSON.parse(message.data));
});
- };
+ }
};
QtProvider.prototype.send = function(payload) {
diff --git a/websocket.js b/websocket.js
index 63855ade1..732a086f2 100644
--- a/websocket.js
+++ b/websocket.js
@@ -11,7 +11,7 @@
var self = this;
this.ws.onmessage = function(event) {
for(var i = 0; i < self.handlers.length; i++) {
- self.handlers[i].call(self, JSON.parse(event.data), event);
+ self.handlers[i].call(self, JSON.parse(event.data), event)
}
};