Closed sheldonbaker closed 11 years ago
Basically just copied the pattern used in the if(isBelongsTo(meta)) block, but avoided infinite loops by passing along null as the child's 'parent' attribute, and checking for null on subsequent calls to generate.
if(isBelongsTo(meta))
generate
Did a bit more testing and found some other issues. Will re-submit if I figure them out.
Basically just copied the pattern used in the
if(isBelongsTo(meta))
block, but avoided infinite loops by passing along null as the child's 'parent' attribute, and checking for null on subsequent calls togenerate
.