add change storage to settings

This commit is contained in:
Matias Alejo Garcia 2014-10-30 16:20:25 -03:00
commit d2f09291cf
7 changed files with 63 additions and 43 deletions

View file

@ -32,22 +32,23 @@ angular.module('copayApp.services')
root.logout = function() {
if ($rootScope.iden) {
$rootScope.iden.store(null, function(){
$rootScope.iden.store(null, function() {
$rootScope.iden.close();
delete $rootScope['wallet'];
delete $rootScope['iden'];
// Clear rootScope
for (var i in $rootScope) {
if (i.charAt(0) != '$') {
delete $rootScope[i];
}
}
$location.path('/');
});
}
delete $rootScope['wallet'];
delete $rootScope['iden'];
// Clear rootScope
for (var i in $rootScope) {
if (i.charAt(0) != '$') {
delete $rootScope[i];
}
}
$location.path('/');
};
root.onError = function(scope) {