summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/runtime.js')
-rw-r--r--lib/handlebars/runtime.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js
index 0780fbf..eb942d5 100644
--- a/lib/handlebars/runtime.js
+++ b/lib/handlebars/runtime.js
@@ -150,12 +150,11 @@ export function template(templateSpec, env) {
};
ret._child = function(i) {
- if (templateSpec.depth) {
- throw new Exception('_child can not be used with depthed methods');
+ if (templateSpec.useDepths) {
+ throw new Exception('_child can not be used with depthed templates');
}
- // TODO : Fix this
- return container.programWithDepth(i);
+ return program(container, i, templateSpec[i]);
};
return ret;
}