remove console.logs

This commit is contained in:
Manuel Araoz 2014-06-03 18:38:56 -03:00
commit 7798e38253
18 changed files with 9 additions and 161 deletions

View file

@ -31,8 +31,9 @@ function WalletFactory(config, version) {
WalletFactory.prototype.log = function(){
if (!this.verbose) return;
if (console)
console.log.apply(console, arguments);
if (console) {
console.log.apply(console, arguments);
}
};
@ -47,10 +48,8 @@ WalletFactory.prototype._checkRead = function(walletId) {
};
WalletFactory.prototype.fromObj = function(obj) {
console.log('## Decrypting'); //TODO
var w = Wallet.fromObj(obj, this.storage, this.network, this.blockchain);
w.verbose = this.verbose;
this.log('### WALLET OPENED:', w.id);
return w;
};