various fixes
This commit is contained in:
parent
23dc09a635
commit
19d1bde546
6 changed files with 19 additions and 19 deletions
|
|
@ -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 );
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue