Changes between Initial Version and Version 1 of Ticket #11134
- Timestamp:
- May 12, 2010, 12:07:35 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11134
- Property Owner anonymous deleted
-
Property
Component
changed from
General
toDijit
-
Property
Summary
changed from
Error in AccordionContainer removeChild() when removing last child ContentPane
toAccordionContainer: error on removeChild() of last child
-
Ticket #11134 – Description
initial v1 1 I start with an AccordionContainer object w/ 2 ContentPane children added to it via addChild(). I then attempt to clear the list and repopulate w/ new data. To do this, I iterate through the 2 child contentPane's and callAccordionContainer.removeChild() on them. On the second invocation of removeChild(), I get an error in FireBug saying:1 I start with an !AccordionContainer object w/ 2 !ContentPane children added to it via addChild(). I then attempt to clear the list and repopulate w/ new data. To do this, I iterate through the 2 child contentPane's and call !AccordionContainer.removeChild() on them. On the second invocation of removeChild(), I get an error in FireBug saying: 2 2 3 3 widget is undefined 4 4 [Break on this error] (1120 out of range 516) 5 5 6 I've traced the code through FireBug, and it seems to happen in line 652 of ContentPane.js, when it calls widget.resize(). At this point,AccordionContainer.children is an array with one element, which is undefined: [undefined].6 I've traced the code through !FireBug, and it seems to happen in line 652 of !ContentPane.js, when it calls widget.resize(). At this point, !AccordionContainer.children is an array with one element, which is undefined: [undefined].