couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [1/2] couchdb commit: updated refs/heads/master to 160f826
Date Tue, 11 Mar 2014 11:18:42 GMT
Repository: couchdb
Updated Branches:
  refs/heads/master fffc5b73d -> 160f826e5


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/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/master
Commit: 160f826e5f61f52bd7830e47f45738bedde11137
Parents: e7548b2
Author: Dale Harvey <dale@arandomurl.com>
Authored: Tue Mar 11 15:16:13 2014 +0400
Committer: Alexander Shorin <kxepal@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);
       });
     },


Mime
View raw message