return null instead of undefined, if not provider is set

This commit is contained in:
Marek Kotewicz 2015-01-26 16:41:00 +01:00
parent d0b6f3663b
commit e5d294df32
4 changed files with 4 additions and 4 deletions

2
dist/ethereum.js vendored

@ -739,7 +739,7 @@ ProviderManager.prototype.send = function(data) {
if (this.provider === undefined) {
console.error('provider is not set');
return undefined;
return null;
}
//TODO: handle error here?

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -70,7 +70,7 @@ ProviderManager.prototype.send = function(data) {
if (this.provider === undefined) {
console.error('provider is not set');
return undefined;
return null;
}
//TODO: handle error here?