remove pubKeyRingUpdated event

This commit is contained in:
Manuel Araoz 2014-05-09 15:05:47 -03:00
parent 0f1d651e36
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;
this.sendPublicKeyRing(recipients);
}
this.emit('publicKeyRingUpdated', this.publicKeyRing);
this.emit('refresh', this.publicKeyRing);
this.store();
};

View File

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