Ticket #5219 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.