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 <[email protected]> Authored: Sun Nov 9 16:06:51 2014 +0100 Committer: Robert Kowalski <[email protected]> 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),
