Merge branch 'master' of github.com:wycats/handlebars.js

This commit is contained in:
Alan Johnson
2011-02-10 06:27:12 -05:00
6 changed files with 70 additions and 24 deletions
+2 -2
View File
@@ -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<l; i++) {
params.push("depth" + this.environment.depths.list[i]);
@@ -366,7 +366,7 @@ Handlebars.JavaScriptCompiler = function() {};
return function(context, helpers, partials, depth) {
try {
return container.render.apply(container, arguments);
return container.render.call(container, Handlebars, context, helpers, partials, depth);
} catch(e) {
throw e;
}