From 16577da96d0cb43b7733a3a04c21aa9ac72bdb64 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 25 Feb 2010 01:20:07 +0000 Subject: commonjs require for show list etc via Mikeal Rogers. closes COUCHDB-658 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916076 13f79535-47bb-0310-9956-ffa450edef68 --- share/server/loop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/server/loop.js') diff --git a/share/server/loop.js b/share/server/loop.js index 800d4440..300151e9 100644 --- a/share/server/loop.js +++ b/share/server/loop.js @@ -74,7 +74,7 @@ var DDoc = (function() { if (i+1 == funPath.length) { fun = point[funPath[i]] if (typeof fun != "function") { - fun = Couch.compileFunction(fun); + fun = Couch.compileFunction(fun, ddoc); // cache the compiled fun on the ddoc point[funPath[i]] = fun }; -- cgit v1.2.3