You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/01/03 21:05:04 UTC
git commit: updated refs/heads/master to 3ada73d
Updated Branches:
refs/heads/master cdb121812 -> 3ada73d04
Fix for setting Ddoc values on view save
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3ada73d0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3ada73d0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3ada73d0
Branch: refs/heads/master
Commit: 3ada73d04cc39fc8d37987d6a463adacc0b21195
Parents: cdb1218
Author: suelockwood <de...@apache.org>
Authored: Fri Jan 3 15:05:00 2014 -0500
Committer: suelockwood <de...@apache.org>
Committed: Fri Jan 3 15:05:00 2014 -0500
----------------------------------------------------------------------
src/fauxton/app/modules/documents/resources.js | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/3ada73d0/src/fauxton/app/modules/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/resources.js b/src/fauxton/app/modules/documents/resources.js
index 8dd283b..14c9eba 100644
--- a/src/fauxton/app/modules/documents/resources.js
+++ b/src/fauxton/app/modules/documents/resources.js
@@ -96,17 +96,10 @@ function(app, FauxtonAPI) {
setDdocView: function (view, map, reduce) {
if (!this.isDdoc()) return false;
var views = this.get('views');
-
if (reduce) {
- views[view] = {
- map: map,
- reduce: reduce
- };
- } else {
- views[view] = {
- map: map
- };
- }
+ views[view].reduce=reduce;
+ }
+ views[view].map= map;
this.set({views: views});