Fix partial handling with different context

This commit is contained in:
kpdecker
2015-08-03 17:27:38 -05:00
parent 9b1f9c7e44
commit c3cbaa25a4
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ export function template(templateSpec, env) {
blockParams = templateSpec.useBlockParams ? [] : undefined;
if (templateSpec.useDepths) {
if (options.depths) {
depths = context !== options.depths[0] ? [context].concat(depths) : options.depths;
depths = context !== options.depths[0] ? [context].concat(options.depths) : options.depths;
} else {
depths = [context];
}