couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [2/2] jquery-couch commit: updated refs/heads/master to 102e663
Date Sun, 09 Nov 2014 15:41:52 GMT
Fix broken key options

noticed while porting the tests


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

Branch: refs/heads/master
Commit: 102e663aab0a7fe4305dee866c55afcb22df6348
Parents: 747ec0f
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sun Nov 9 16:06:51 2014 +0100
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Sun Nov 9 16:41:06 2014 +0100

----------------------------------------------------------------------
 jquery.couch.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/102e663a/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index f368b2a..561d6f4 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -792,6 +792,11 @@
                 : "(" + reduceFun.toString() + ")";
             body.reduce = reduceFun;
           }
+          if (options["keys"]) {
+            var keys = options["keys"];
+            delete options["keys"];
+            body.keys = keys;
+          }
           return ajax({
               type: "POST",
               url: this.uri + "_temp_view" + encodeOptions(options),


Mime
View raw message