diff options
author | machty <machty@gmail.com> | 2015-12-10 12:25:20 -0500 |
---|---|---|
committer | machty <machty@gmail.com> | 2015-12-10 14:22:45 -0500 |
commit | 3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a (patch) | |
tree | 5b8e28cafb942cd7ed448e07e5e6076d95e73968 /lib/handlebars/helpers/block-helper-missing.js | |
parent | 205c61cfb1acdb599bbdfcf2d356641254e09e5c (diff) | |
download | handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.zip handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.tar.gz handlebars.js-3f77b82ed00dc1d71976de76bd4f8dfb6e885f2a.tar.bz2 |
Remove stringParams and trackIds mode
Closes #1145
Diffstat (limited to 'lib/handlebars/helpers/block-helper-missing.js')
-rw-r--r-- | lib/handlebars/helpers/block-helper-missing.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/handlebars/helpers/block-helper-missing.js b/lib/handlebars/helpers/block-helper-missing.js index 6639ddb..e6d162f 100644 --- a/lib/handlebars/helpers/block-helper-missing.js +++ b/lib/handlebars/helpers/block-helper-missing.js @@ -1,4 +1,4 @@ -import {appendContextPath, createFrame, isArray} from '../utils'; +import {isArray} from '../utils'; export default function(instance) { instance.registerHelper('blockHelperMissing', function(context, options) { @@ -11,21 +11,11 @@ export default function(instance) { return inverse(this); } else if (isArray(context)) { if (context.length > 0) { - if (options.ids) { - options.ids = [options.name]; - } - return instance.helpers.each(context, options); } else { return inverse(this); } } else { - if (options.data && options.ids) { - let data = createFrame(options.data); - data.contextPath = appendContextPath(options.data.contextPath, options.name); - options = {data: data}; - } - return fn(context, options); } }); |