Opened 10 years ago

Closed 10 years ago

#11134 closed defect (fixed)

AccordionContainer: error on removeChild() of last child

Reported by: Grimmy102 Owned by: bill
Priority: high Milestone: 1.5
Component: Dijit Version: 1.4.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

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:

widget is undefined [Break on this error] (1120 out of range 516)

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].

Change History (3)

comment:1 Changed 10 years ago by bill

Component: GeneralDijit
Description: modified (diff)
Owner: anonymous deleted
Summary: Error in AccordionContainer removeChild() when removing last child ContentPaneAccordionContainer: error on removeChild() of last child

Related to #10004 and #10779

comment:2 Changed 10 years ago by bill

Milestone: tbd1.5
Owner: set to bill
Status: newassigned

comment:3 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [22142]) Fix problems creating empty AccordionContainer and removing last child from AccordionContainer, fixes #10779, #11134 !strict.

Note: See TracTickets for help on using tickets.