You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2014/03/16 17:57:52 UTC

[12/29] couchdb commit: updated refs/heads/2041-update-ibrowse to b63f393

More deferred support to jquery.couch.js

COUCHDB-1180

Signed-off-by: Alexander Shorin <kx...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/160f826e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/160f826e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/160f826e

Branch: refs/heads/2041-update-ibrowse
Commit: 160f826e5f61f52bd7830e47f45738bedde11137
Parents: e7548b2
Author: Dale Harvey <da...@arandomurl.com>
Authored: Tue Mar 11 15:16:13 2014 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Tue Mar 11 15:17:39 2014 +0400

----------------------------------------------------------------------
 share/www/script/jquery.couch.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/160f826e/share/www/script/jquery.couch.js
----------------------------------------------------------------------
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index facaf9c..ffbad34 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -160,7 +160,7 @@
      * @private
      */
     userDb : function(callback) {
-      $.couch.session({
+      return $.couch.session({
         success : function(resp) {
           var userDb = $.couch.db(resp.info.authentication_db);
           callback(userDb);
@@ -187,7 +187,7 @@
       var user_prefix = "org.couchdb.user:";
       user_doc._id = user_doc._id || user_prefix + user_doc.name;
 
-      $.couch.userDb(function(db) {
+      return $.couch.userDb(function(db) {
         db.saveDoc(user_doc, options);
       });
     },