From 25ba346489ebec99379f31dcaac80f413ebba881 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 27 Oct 2014 15:00:08 -0300 Subject: [PATCH] fix bind --- js/models/Identity.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/Identity.js b/js/models/Identity.js index bb10012a4..11a6fce5e 100644 --- a/js/models/Identity.js +++ b/js/models/Identity.js @@ -143,7 +143,6 @@ Identity.open = function(opts, cb) { * @param {Function} cb */ Identity.createFromPartialJson = function(jsonString, opts, callback) { - var self = this; var exported; try { exported = JSON.parse(jsonString); @@ -155,7 +154,7 @@ Identity.createFromPartialJson = function(jsonString, opts, callback) { identity.retrieveWalletFromStorage(walletId, {}, function(error, wallet) { if (!error) { identity.wallets[wallet.getId()] = wallet; - self.bindWallet(w); + identity.bindWallet(wallet); wallet.netStart(); } callback(error, wallet);