remove pubKeyRingUpdated event

This commit is contained in:
Manuel Araoz 2014-05-09 15:05:47 -03:00
commit bdbe8bdfc7
2 changed files with 1 additions and 6 deletions

View file

@ -79,7 +79,7 @@ Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) {
recipients = null; recipients = null;
this.sendPublicKeyRing(recipients); this.sendPublicKeyRing(recipients);
} }
this.emit('publicKeyRingUpdated', this.publicKeyRing); this.emit('refresh', this.publicKeyRing);
this.store(); this.store();
}; };

View file

@ -84,11 +84,6 @@ angular.module('copay.controllerUtils')
}); });
$rootScope.$digest(); $rootScope.$digest();
}); });
w.on('publicKeyRingUpdated', function() {
root.updateBalance(function() {
$rootScope.$digest();
});
});
w.on('openError', root.onErrorDigest); w.on('openError', root.onErrorDigest);
w.on('connect', function(peerID) { w.on('connect', function(peerID) {
//alert(w.getRegisteredPeerIds()); //alert(w.getRegisteredPeerIds());