Changes between Initial Version and Version 1 of Ticket #11134


Ignore:
Timestamp:
May 12, 2010, 12:07:35 AM (10 years ago)
Author:
bill
Comment:

Related to #10004 and #10779

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11134

    • Property Owner anonymous deleted
    • Property Component changed from General to Dijit
    • Property Summary changed from Error in AccordionContainer removeChild() when removing last child ContentPane to AccordionContainer: 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 call AccordionContainer.removeChild() on them.  On the second invocation of removeChild(), I get an error in FireBug saying:
     1I 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:
    22
    33widget is undefined
    44[Break on this error] (1120 out of range 516)
    55
    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].
     6I'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].