Changes between Initial Version and Version 4 of Ticket #7706


Ignore:
Timestamp:
Sep 25, 2008, 1:14:06 AM (11 years ago)
Author:
bill
Comment:

Actually, there is a separate issue here (even after fixing #7709) in that if a ContentPane contains a widget with widgetsInTemplate==true, ContentPane's getDescendants() will include those widgets too.

Updating ticket description to reflect this.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7706

    • Property Status changed from new to reopened
    • Property Component changed from General to Dijit
    • Property Summary changed from a question about dijit 1.2 to ContentPane: widgets in templates getting destroyed twice
    • Property Priority changed from high to low
    • Property Milestone changed from 1.2 to 1.4
    • Property Owner anonymous deleted
  • Ticket #7706 – Description

    initial v4  
     1Destroying a !ContentPane that contains widgets with widgetsInTemplate=true, will destroy widgets defined in templates twice:
     2
     3 1. when the host widget is destroyed (IE, !InlineEditBox.destroy() will destroy the buttons used in it's template)
     4 2. !ContentPane.destroyDescendants() calls getDescendants(), which incorrectly returns those buttons in InlineEditBox's template in addition to the !InlinEditBox itself.
     5
     6Original summary (dup of #7709)
     7--------------------------
    18When a template file includes widgets,the top widget will call the included widgets's destroy() twice.One happened in the destroyDescendants() of the dijit._Widgets. Other happened in the empty() of the dojo.html.
    29