Opened 11 years ago

Closed 11 years ago

#8943 closed defect (fixed)

_Widget.attr unit test: javascript exception searching for destroyRecursive (IE7 tests)

Reported by: bill Owned by: bill
Priority: high Milestone: 1.3
Component: Dijit Version: 1.3.0b3
Keywords: Cc:
Blocked By: Blocking:

Description

Failure on IE7 in dijit's runTest.html during teardown of a test. Might be happening when closing the page for _Widget.lifecycle test.

Looks like in the code to destroy widgets:

if(dojo.isIE){
	// Only run this for IE because we think it's only necessary in that case,
	// and because it causes problems on FF.  See bug #3531 for details.
	dojo.addOnWindowUnload(function(){
		dojo.forEach(dijit.findWidgets(dojo.body()), function(widget){
			if(widget.destroyRecursive){
				widget.destroyRecursive();
			}else if(widget.destroy){
				widget.destroy();
			}
		});
	});
}

that findWidgets() is returning a null entry for one of the widgets.

Change History (1)

comment:1 Changed 11 years ago by bill

Resolution: fixed
Status: newclosed

Fixed in [17056].

Note: See TracTickets for help on using tickets.