diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-14 23:10:17 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-14 23:10:17 -0500 |
commit | 6f22ec1e01264f443820a8f89b8a7e2edcf89abf (patch) | |
tree | 6aeb5badbad0c61822658bb9e091ca2e3738d691 /lib/handlebars | |
parent | c71ca34fd30a8ed04349b92564a577ba193da2ee (diff) | |
download | handlebars.js-6f22ec1e01264f443820a8f89b8a7e2edcf89abf.zip handlebars.js-6f22ec1e01264f443820a8f89b8a7e2edcf89abf.tar.gz handlebars.js-6f22ec1e01264f443820a8f89b8a7e2edcf89abf.tar.bz2 |
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.
Diffstat (limited to 'lib/handlebars')
-rw-r--r-- | lib/handlebars/base.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js index 8f068e1..f39241f 100644 --- a/lib/handlebars/base.js +++ b/lib/handlebars/base.js @@ -69,8 +69,6 @@ function registerDefaultHelpers(instance) { var inverse = options.inverse, fn = options.fn; - if (isFunction(context)) { context = context.call(this); } - if(context === true) { return fn(this); } else if(context === false || context == null) { |