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();

View file

@ -3,7 +3,6 @@
angular.module('notifications', []).
factory('$notification', ['$timeout',function($timeout){
// console.log('notification service online');
var notifications = JSON.parse(localStorage.getItem('$notifications')) || [],
queue = [];
@ -76,7 +75,6 @@ angular.module('notifications', []).
requestHtml5ModePermissions: function(){
if (window.webkitNotifications){
console.log('notifications are available');
if (window.webkitNotifications.checkPermission() === 0) {
return true;
}
@ -93,7 +91,6 @@ angular.module('notifications', []).
}
}
else{
console.log('notifications are not supported');
return false;
}
},
@ -113,12 +110,10 @@ angular.module('notifications', []).
/* ============== NOTIFICATION METHODS ==============*/
info: function(title, content, userData){
console.log(title, content);
return this.awesomeNotify('info','loop', title, content, userData);
},
funds: function(title, content, userData){
console.log(title, content);
return this.awesomeNotify('funds','bitcoin', title, content, userData);
},
@ -168,9 +163,9 @@ angular.module('notifications', []).
if(settings.html5Mode){
html5Notify(image, title, content, function(){
console.log("inner on display function");
// inner on display function
}, function(){
console.log("inner on close function");
// inner on close function
});
}
else{
@ -190,11 +185,9 @@ angular.module('notifications', []).
save: function(){
// Save all the notifications into localStorage
// console.log(JSON);
if(settings.localStorage){
localStorage.setItem('$notifications', JSON.stringify(notifications));
}
// console.log(localStorage.getItem('$notifications'));
},
restore: function(){
@ -218,7 +211,6 @@ angular.module('notifications', []).
* Finally, the directive should have its own controller for
* handling all of the notifications from the notification service
*/
// console.log('this is a new directive');
var html =
'<div class="dr-notification-wrapper" ng-repeat="noti in queue">' +
'<div class="dr-notification-close-btn" ng-click="removeNotification(noti)">' +

View file

@ -69,11 +69,9 @@ Video.prototype._addCall = function(mediaConnection, cb) {
});
mediaConnection.on('close', function() {
console.log('Media connection closed with ' + peerID);
cb(true, peerID, null); // ask to stop video streaming in UI
});
mediaConnection.on('error', function(e) {
console.log('Media connection error with ' + peerID);
cb(e, peerID, null);
});
this.mediaConnections[peerID] = mediaConnection;