summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/helpers/block-helper-missing.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/helpers/block-helper-missing.js')
-rw-r--r--lib/handlebars/helpers/block-helper-missing.js12
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);
}
});