fix tests

This commit is contained in:
Matias Alejo Garcia 2014-10-27 14:53:40 -03:00
commit 1313088e14
4 changed files with 70 additions and 55 deletions

View file

@ -73,7 +73,6 @@ angular.module('copayApp.services')
}, 3000);
root.installWalletHandlers = function($scope, w) {
w.removeAllListeners();
var wid = w.getId();
w.on('connectionError', function() {
@ -101,13 +100,6 @@ angular.module('copayApp.services')
}
});
w.on('newAddresses', function(dontDigest) {
root.updateTxsAndBalance(w);
if (!dontDigest) {
$rootScope.$digest();
}
});
w.on('tx', function(address, isChange) {
if (!isChange) {
notification.funds('Funds received on ' + w.getName(), address);
@ -137,8 +129,11 @@ angular.module('copayApp.services')
$rootScope.$digest();
}
});
w.on('newAddresses', function() {
root.updateTxsAndBalance(w);
});
w.on('txProposalsUpdated', function(dontDigest) {
w.on('txProposalsUpdated', function() {
root.updateTxsAndBalance(w);
});