Opened 13 years ago

Closed 12 years ago

#2702 closed defect (wontfix)

Topics created by TreeV3 are not destroyed

Reported by: yh_mailinglist@… Owned by: bill
Priority: high Milestone: 1.1
Component: Dijit Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

pb reproduced in 0.4.2rc1 with FF (but I think it not specific to FF )

I have a TreeV3 with

This tree is part of a home-made widget, which is opened in a modal floating pane. When the modal floating pane is closed, all the widgets including the tree v3 are destroyed (I have checked the count of objects in dojo.widget.manager and it is ok), but the topics created internally by the tree are still there.

as a workaround I had to add the following lines in my container widget destroy method:

dojo.event.topic.destroy("confInfoTree/afterAddChild"); dojo.event.topic.destroy("confInfoTree/afterChangeTree"); dojo.event.topic.destroy("confInfoTree/afterCollapse"); dojo.event.topic.destroy("confInfoTree/afterDetach"); dojo.event.topic.destroy("confInfoTree/afterExpand"); dojo.event.topic.destroy("confInfoTree/afterSetFolder"); dojo.event.topic.destroy("confInfoTree/afterTreeCreate"); dojo.event.topic.destroy("confInfoTreeSelect/deselect"); dojo.event.topic.destroy("confInfoTree/beforeNodeDestroy"); dojo.event.topic.destroy("confInfoTree/beforeTreeDestroy"); dojo.event.topic.destroy("confInfoTreeSelect/select");

Change History (3)

comment:1 Changed 12 years ago by bill

Component: WidgetsDijit
Milestone: 0.9

comment:2 Changed 12 years ago by bill

Milestone: 0.91.1

Hmm, there's only one topic created in 0.9, but I don't know how to destroy it (I don't see a destroy topic function in dojo)

comment:3 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.