From bdbe8bdfc74e37c3d6a4e77560dba6438878a2db Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 9 May 2014 15:05:47 -0300 Subject: [PATCH] remove pubKeyRingUpdated event --- js/models/core/Wallet.js | 2 +- js/services/controllerUtils.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 5bab60fe8..6a0e0b19e 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -79,7 +79,7 @@ Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) { recipients = null; this.sendPublicKeyRing(recipients); } - this.emit('publicKeyRingUpdated', this.publicKeyRing); + this.emit('refresh', this.publicKeyRing); this.store(); }; diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index 76dbb8fdf..051deefee 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -84,11 +84,6 @@ angular.module('copay.controllerUtils') }); $rootScope.$digest(); }); - w.on('publicKeyRingUpdated', function() { - root.updateBalance(function() { - $rootScope.$digest(); - }); - }); w.on('openError', root.onErrorDigest); w.on('connect', function(peerID) { //alert(w.getRegisteredPeerIds());