Skip to content

Commit ea581db

Browse files
authored
Merge pull request #307 from canjs/fix-subchildren-tag
Fix issue with @subchildren
2 parents 88c2afc + 33116ad commit ea581db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
406406
//
407407
var getChildren = this.getChildren.bind(this),
408408
getNestedDocObject = this.getNestedDocObject.bind(this);
409-
409+
410410
var self = this;
411411
var cur = this.getCurrent();
412412
var curChildren = this.getNestedChildren(cur);
@@ -415,7 +415,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
415415
if(docObject.name === cur.name) {
416416
if(cur.subchildren){
417417
curChildren.forEach(function(child){
418-
if(child.docObject){
418+
if (child.docObject && !child.children) {
419419
child.children = self.getNestedChildren(child.docObject);
420420
}
421421
});

0 commit comments

Comments
 (0)