AccordionContainer fails to startup if there is no child
Reported by: |
guest |
Owned by: |
davidb |
Priority:
|
high
|
Milestone:
|
0.9
|
Component:
|
Dijit
|
Version:
|
0.9
|
Keywords:
|
|
Cc:
|
|
Blocked By:
|
|
Blocking:
|
|
AccordionContainer? fails to startup if there is no child, check the line:
this.getChildren()[0].focusNode.setAttribute("tabIndex","0");
at startup().
It should be possible to create an empty AccordionContainer? and add some AccordionPanes? later, after startup (for example programatically).
Change History (5)
Milestone: |
→ 0.9
|
Owner: |
changed from bill to Adam Peller
|
Owner: |
changed from Adam Peller to davidb
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
David, I think the else clause in AccordionContainer?.startup() should go away entirely. this.selectedChildWidget will default to children[0] in the superclass (StackContainer?) so this code is redundant, I think. The only way the if() condtion will fail is if there are no children, then we should do nothing.