Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 1.1.2, 1.2
-
Fix Version/s: None
-
Component/s: Renderer
-
Labels:None
Description
Below is a section of component tree - in it, "title-plain" is a leaf node, but is presented with children, because its markup contains further nodes. This triggers the "erroneous branch", currently at line 1778 of the renderer:
if (component && component.children !== undefined)
{ renderContainer(component); renderindex = lump.close_tag.lumpindex + 1; }which can never execute correctly since it does not supply a target branch point. Behaviour in this case should be clarified and a reasonable diagnostic issued.
var fullTree = {
children: [
// The colon ( at the end of the rsf ID identifies the component as a repeating
// component. In this full tree, there is one object for each repeated component.
{
ID: "resource-item:",
children: [ {
ID: "title-plain",
decorators: [
],
children: [ {
ID: "title-link",
linktext: "My Workspace",
target: "/user/jimeng/",
decorators: [{
attrs:
}]
}, {
ID: "title-image",
target: "../images/dir_closed.gif",
decorators: [{
attrs:
}]
}]
} ]
},