various fixes

This commit is contained in:
Ivan Socolsky 2014-12-02 14:33:46 -03:00 committed by Matias Alejo Garcia
commit 19d1bde546
6 changed files with 19 additions and 19 deletions

View file

@ -18,14 +18,14 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$scope.done = function() {
$rootScope.starting = false;
setTimeout(function () { $rootScope.$digest(); }, 1);
$rootScope.$digest();
};
$scope.$on("$destroy", function(){
var iden = $rootScope.iden;
if (iden) {
iden.removeListener('newWallets', $scope.done );
iden.removeListener('newWallet', $scope.done );
iden.removeListener('noWallets', $scope.done );
}
});