Additional test coverage cleanup

Also fixes the template._child implementation which broke with the depthed work.
This commit is contained in:
kpdecker
2014-08-23 18:52:30 -05:00
parent 0c7c37df6a
commit 2b3fdf7ea8
4 changed files with 43 additions and 9 deletions
+3 -4
View File
@@ -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;
}