Fixes: tests. Added karma and mocha tests.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 20:07:41 -03:00
commit 8ad1fa7b02
7 changed files with 40 additions and 9 deletions

View file

@ -21,10 +21,7 @@ angular.module('copayApp.services')
}
};
root.logout = function() {
if (!$rootScope.wallet.isLocked) {
$rootScope.wallet.closeIfOpen();
}
root.logout = function() {
Socket.removeAllListeners();
$rootScope.wallet = null;