You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by sa...@apache.org on 2016/08/05 14:19:49 UTC
[22/37] incubator-milagro-mfa-js-lib git commit: Move recover to init
function
Move recover to init function
Project: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/commit/0f359a36
Tree: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/tree/0f359a36
Diff: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/diff/0f359a36
Branch: refs/heads/add-documentation
Commit: 0f359a36280abe8305c470d7c1e3009e5a74d136
Parents: 70a031a
Author: Boyan Bakov <bo...@certivox.com>
Authored: Tue Mar 1 16:42:51 2016 +0200
Committer: Boyan Bakov <bo...@certivox.com>
Committed: Tue Mar 1 16:44:55 2016 +0200
----------------------------------------------------------------------
lib/mpin.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/blob/0f359a36/lib/mpin.js
----------------------------------------------------------------------
diff --git a/lib/mpin.js b/lib/mpin.js
index 6250dce..d23d32f 100644
--- a/lib/mpin.js
+++ b/lib/mpin.js
@@ -47,7 +47,6 @@ var mpinjs = (function () {
this.opts = options;
this.settings = {};
- this.recover();
};
Mpin.prototype.storageKey = "mpinjs";
@@ -55,6 +54,7 @@ var mpinjs = (function () {
Mpin.prototype.init = function (cb) {
var self = this, _initUrl;
+ this.recover();
if (this.opts.server.slice(-1) === "/") {
_initUrl = this.opts.server;
} else {