From aaaafb4400ed88e955d97f73372309748c606784 Mon Sep 17 00:00:00 2001 From: wycats Date: Tue, 8 Feb 2011 14:31:09 -0800 Subject: [PATCH] Makes Handlebars work in contexts without a global object (node) --- lib/handlebars/vm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/handlebars/vm.js b/lib/handlebars/vm.js index b8a33b81..5013b7ae 100644 --- a/lib/handlebars/vm.js +++ b/lib/handlebars/vm.js @@ -345,7 +345,7 @@ Handlebars.JavaScriptCompiler = function() {}; this.source.push("return buffer;"); - var params = ["context", "helpers", "partials"]; + var params = ["Handlebars", "context", "helpers", "partials"]; for(var i=0, l=this.environment.depths.list.length; i