diff --git a/README.markdown b/README.markdown index 28fa9a56..56042f4d 100644 --- a/README.markdown +++ b/README.markdown @@ -138,8 +138,8 @@ Handlebars.js also adds the ability to define block helpers. Block helpers are f ```js var source = ""; -Handlebars.registerHelper('link', function(context, options) { - return '' + context.fn(this) + ''; +Handlebars.registerHelper('link', function(options) { + return '' + options.fn(this) + ''; }); var template = Handlebars.compile(source); diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 297a5534..64ae959f 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -805,7 +805,7 @@ Handlebars.JavaScriptCompiler = function() {}; } this.context.aliases.self = "this"; - this.pushStack("self.invokePartial(" + params.join(", ") + ");"); + this.pushStack("self.invokePartial(" + params.join(", ") + ")"); }, // [assignToHash]