Ticket #5219 (closed defect: fixed)

Opened 12 months ago

Last modified 12 months ago

dojox.layout.FloatingPane doesn't mind children when destroying

Reported by: guest Owned by: dante
Priority: normal Milestone:
Component: Dojox Version: 1.0
Severity: normal Keywords:
Cc:

Description

The floating pane won't destroy the child widgets it contains (by getting its content remotely).

Adding the following method

	,destroyRecursive : function() {
		this.inherited("destroyRecursive", arguments);
	}

and changing the call from "destroy" to "destroyRecursive" in close() seems to fix this:

	close: function(){
		// summary: close and destroy this widget
		if(!this.closable){ return; }
		dojo.unsubscribe(this._listener); 
		this.hide(dojo.hitch(this,"destroyRecursive")); 
	},

The children as well as the FP itself are destroyed and removed from the dijit.registry

Change History

Changed 12 months ago by dante

  • owner changed from ttrenka to dante
  • status changed from new to assigned

Changed 12 months ago by dante

  • status changed from assigned to closed
  • resolution set to fixed

(In [11624]) fixes #5219 - destroy contents as well as pane on close. fixes #5231 - patch from BlueFire? allowing the child of a floatingpane to be a LayoutWidget? and size accordingly, and fixes #5232 - another patch from BlueFire? to make resize handle use a single 'rubberband' for virtual sizing.

Note: See TracTickets for help on using tickets.