Refactor controllers

This commit is contained in:
Yemel Jardi 2014-08-28 15:18:05 -03:00
commit 16091bd330
9 changed files with 50 additions and 47 deletions

View file

@ -9,8 +9,7 @@ angular.module('copayApp.controllers').controller('AddressesController',
$scope.loading = true;
w.generateAddress(null, function() {
$timeout(function() {
controllerUtils.setSocketHandlers();
controllerUtils.updateAddressList();
controllerUtils.updateGlobalAddresses();
$scope.loading = false;
}, 1);
});

View file

@ -57,9 +57,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
return new Array(num);
}
// Init socket handlers (with no wallet yet)
controllerUtils.setSocketHandlers();
if ($rootScope.wallet) {
$scope.$on('$idleWarn', function(a,countdown) {
if (!(countdown%5))