summaryrefslogtreecommitdiff
path: root/share/server
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-05-20 19:57:37 +0000
committerDamien F. Katz <damien@apache.org>2008-05-20 19:57:37 +0000
commit5da7c1a8ba70f41a8e92cb1efee1f6c6898a2901 (patch)
treee675679054d39391833d0eafeb7a2a5ebac03286 /share/server
parent2178d96a2f5d2103676d0319c07d1f6bb904b97c (diff)
Fixed design document view definitions to be consistent with temp views. Changed the name of the map(K,V) call in the javascript views to emit(K,V)
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@658405 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server')
-rw-r--r--share/server/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/server/main.js b/share/server/main.js
index e7184682..59acb02f 100644
--- a/share/server/main.js
+++ b/share/server/main.js
@@ -16,7 +16,7 @@ var map_results = []; // holds temporary emitted values during doc map
var sandbox = null;
-map = function(key, value) {
+emit = function(key, value) {
map_results.push([key, value]);
}
@@ -32,7 +32,7 @@ sum = function(values) {
try {
// if possible, use evalcx (not always available)
sandbox = evalcx('');
- sandbox.map = map;
+ sandbox.emit = emit;
sandbox.sum = sum;
} catch (e) {}