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

@ -100,7 +100,6 @@ angular.module('copayApp.services')
};
root.updateBalance = function(cb) {
console.log('Updating balance...');
var w = $rootScope.wallet;
$rootScope.balanceByAddr = {};
@ -132,7 +131,6 @@ angular.module('copayApp.services')
if (!w) return;
opts = opts || {};
console.log('## updating tx proposals', opts); //TODO
var myCopayerId = w.getMyCopayerId();
var pendingForUs = 0;
var inT = w.getTxProposals().sort(function(t1, t2) { return t1.createdTs < t2.createdTs });
@ -150,7 +148,6 @@ angular.module('copayApp.services')
i.isPending=1;
}
if (!opts.onlyPending || i.isPending) {
console.log('tx:',i); //TODO
var tx = i.builder.build();
var outs = [];
tx.outs.forEach(function(o) {
@ -175,7 +172,6 @@ angular.module('copayApp.services')
$rootScope.txAlertCount = pendingForUs;
}
$rootScope.pendingTxCount = pendingForUs;
console.log('## Done updating tx proposals'); //TODO
};
root.setSocketHandlers = function() {
@ -191,12 +187,10 @@ angular.module('copayApp.services')
newAddrs.push(a);
}
for (var i = 0; i < newAddrs.length; i++) {
console.log('### SUBSCRIBE TO', newAddrs[i]);
Socket.emit('subscribe', newAddrs[i]);
}
newAddrs.forEach(function(addr) {
Socket.on(addr, function(txid) {
console.log('Received!', txid);
$rootScope.receivedFund = [txid, addr];
root.updateBalance(function(){
$rootScope.$digest();