polymath.js_v2
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -42,9 +42,3 @@ 'use strict'; | ||
get: function get(target, field) { | ||
try { | ||
target._init(); | ||
} catch (e) { | ||
// eslint-disable-next-line | ||
console.error('Contract init failed', e); | ||
return undefined; | ||
} | ||
target._init(); | ||
if (field in target) { | ||
@@ -298,3 +292,8 @@ return target[field]; | ||
value: function unsubscribe() { | ||
return Contract.params.web3WS.eth.clearSubscriptions(); | ||
try { | ||
Contract.params.web3WS.eth.clearSubscriptions(); | ||
} catch (e) { | ||
// TODO @bshevchenko: clearSubscriptions throws error when no subscriptions and probably subscriptions are not tracked at all | ||
} | ||
return true; | ||
} | ||
@@ -301,0 +300,0 @@ }]); |
{ | ||
"name": "polymath.js_v2", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "babel-cli": "^6.26.0", |
Sorry, the diff of this file is not supported yet
339756
6701