fix broken encrypt in localstorage

This commit is contained in:
Matias Alejo Garcia 2014-12-13 19:38:39 -03:00
commit ad40641646
4 changed files with 23 additions and 11 deletions

View file

@ -377,6 +377,7 @@ Identity.prototype._cleanUp = function() {
* @desc Closes the wallet and disconnects all services
*/
Identity.prototype.close = function() {
this._cleanUp();
this.emitAndKeepAlive('closed');
};