Opened 12 years ago
Closed 12 years ago
#9003 closed defect (wontfix)
Tooltip: destroyRecursive doesn't destroy Tooltip
Reported by: | Scott | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.3.0rc2 |
Keywords: | tooltip destroy destroyRecursive | Cc: | |
Blocked By: | Blocking: |
Description
tooltip.destroyRecursive() doesn't destroy the Tooltip.
Repro steps:
[...create tooltip...] tooltip.destroyRecursive() tooltip.open() // opens the Tooltip again
See attached for repro code.
Expected: after calling destroyRecursive(), the widget would be undefined or in a state unable to be opened again.
Attachments (1)
Change History (3)
Changed 12 years ago by
Attachment: | test_tooltip.html added |
---|
comment:2 Changed 12 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Hi Scott,
AFAICT, destroy() is correctly disconnecting all the event handlers and deleting the DOM node associated with tooltip. After that, tooltip will be garbage collected as soon as all references to it have gone away.
Calling any method after destroy() is called, the behavior is undefined... we don't guarantee that nothing will happen.
Note: See
TracTickets for help on using
tickets.
test case