Skip to content

Commit 6f22ec1

Browse files
committed
Remove nested function eval in blockHelperMissing
This only worked when a function returned a function, which was then evaluated. This seems like unexpected behavior so this was dropped.
1 parent c71ca34 commit 6f22ec1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/handlebars/base.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ function registerDefaultHelpers(instance) {
6969
var inverse = options.inverse,
7070
fn = options.fn;
7171

72-
if (isFunction(context)) { context = context.call(this); }
73-
7472
if(context === true) {
7573
return fn(this);
7674
} else if(context === false || context == null) {

0 commit comments

Comments
 (0)