From 5da7c1a8ba70f41a8e92cb1efee1f6c6898a2901 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 20 May 2008 19:57:37 +0000 Subject: 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 --- share/server/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/server') 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) {} -- cgit v1.2.3