Opened 12 years ago

Closed 12 years ago

#6789 closed defect (fixed)

Tree: DnD controller not destroyed

Reported by: bill Owned by:
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.0
Keywords: Cc:
Blocked By: Blocking:

Description

My tree is created programmatically. In certain circumstances, I need to recreate the tree. When I do this, the old instance of the tree is still subscribed to my drag and drop events, so the drop target is incorrect. It appears that destroying the Tree or the Tree Model does not cause the DndSource? to get destroyed, which would unsubscribe the dnd notifications. If I try to destroy the DndSource? myself, I get an error that "clearItems is not a function" from the dnd.Container.destroy.

Change History (2)

comment:1 Changed 12 years ago by bill

(In [13768]) Testcase for DnD controller not getting destroyed problem. Refs #6789. Seems to be working for me.

comment:2 Changed 12 years ago by bill

Resolution: fixed
Status: newclosed

(In [13798]) Fixes #6789: Tree: DnD controller not destroyed !strict

Note: See TracTickets for help on using tickets.