summaryrefslogtreecommitdiff
path: root/share/server/views.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/server/views.js')
-rw-r--r--share/server/views.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/server/views.js b/share/server/views.js
index a20fecedd..7c9953d83 100644
--- a/share/server/views.js
+++ b/share/server/views.js
@@ -120,10 +120,10 @@ var Views = (function() {
Couch.recursivelySeal(doc);
var buf = [];
- for each (fun in State.funs) {
+ for (var fun in State.funs) {
map_results = [];
try {
- fun(doc);
+ State.funs[fun](doc);
buf.push(map_results);
} catch (err) {
handleViewError(err, doc);