diff options
Diffstat (limited to 'share/server/validate.js')
-rw-r--r-- | share/server/validate.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/server/validate.js b/share/server/validate.js index 5e5e5f9f..76a14129 100644 --- a/share/server/validate.js +++ b/share/server/validate.js @@ -11,10 +11,9 @@ // the License. var Validate = { - validate : function(funSrc, newDoc, oldDoc, userCtx) { - var validateFun = compileFunction(funSrc); + validate : function(fun, ddoc, args) { try { - validateFun(newDoc, oldDoc, userCtx); + fun.apply(ddoc, args); print("1"); } catch (error) { respond(error); |