You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/10/31 04:01:05 UTC
[9/9] jquery-couch commit: updated refs/heads/master to ec5fa13
Add complete for login, and use code style of the lib
Signed-off-by: Alexander Shorin <kx...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/ec5fa139
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/ec5fa139
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/ec5fa139
Branch: refs/heads/master
Commit: ec5fa139462be3160f8f181215cfeb73591c30fa
Parents: dff79df
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Mon Jun 16 22:08:38 2014 +0200
Committer: Alexander Shorin <kx...@apache.org>
Committed: Thu Jul 31 19:19:24 2014 +0400
----------------------------------------------------------------------
jquery.couch.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/ec5fa139/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 7252548..a46e05d 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -218,9 +218,7 @@
} else {
throw 'An error occurred logging in: ' + resp.reason;
}
- if (typeof options.complete === "function") {
- options.complete();
- }
+ if (options.complete) options.complete();
}
});
},
@@ -251,6 +249,7 @@
} else {
throw 'An error occurred logging out: ' + resp.reason;
}
+ if (options.complete) options.complete();
}
});
},