Opened 14 years ago
Closed 13 years ago
#2702 closed defect (wontfix)
Topics created by TreeV3 are not destroyed
Reported by: | 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
- TreeBasicControllerV3
- TreeSelectorV3
- TreeEmphasizeOnSelect?
- TreeToggleOnSelect?
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 14 years ago by
Component: | Widgets → Dijit |
---|---|
Milestone: | → 0.9 |
comment:2 Changed 14 years ago by
Milestone: | 0.9 → 1.1 |
---|
comment:3 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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)