couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [50/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:55 GMT
More deferred support to jquery.couch.js

COUCHDB-1180

Signed-off-by: Alexander Shorin <kxepal@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/66dbcbfc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/66dbcbfc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/66dbcbfc

Branch: refs/heads/import-master
Commit: 66dbcbfc1def14b77fc24e9c79c875fe57d9bdb6
Parents: d0e44d2
Author: Dale Harvey <dale@arandomurl.com>
Authored: Tue Mar 11 15:16:13 2014 +0400
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Tue Mar 11 15:16:13 2014 +0400

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


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/66dbcbfc/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index facaf9c..ffbad34 100644
--- a/jquery.couch.js
+++ b/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);
       });
     },


Mime
View raw message