couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [48/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:53 GMT
remove superfluous 'user_doc.type'

Fixes COUCHDB-1474


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/0ff661b5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/0ff661b5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/0ff661b5

Branch: refs/heads/import-master
Commit: 0ff661b5df8b28dfdcfd577f89b210885e81b20b
Parents: 620562c
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sun Feb 16 21:37:44 2014 +0100
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Sun Feb 16 21:37:44 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/0ff661b5/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 1a4c3b7..e78b67e 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -182,8 +182,8 @@
     signup: function(user_doc, password, options) {
       options = options || {};
       user_doc.password = password;
-      user_doc.roles =  user_doc.roles || [];
-      user_doc.type =  user_doc.type = "user" || [];
+      user_doc.roles = user_doc.roles || [];
+      user_doc.type = "user";
       var user_prefix = "org.couchdb.user:";
       user_doc._id = user_doc._id || user_prefix + user_doc.name;
 


Mime
View raw message