Opened 10 years ago

Closed 10 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)

test_tooltip.html (1.1 KB) - added by Scott 10 years ago.
test case

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Scott

Attachment: test_tooltip.html added

test case

comment:1 Changed 10 years ago by Scott

This is with FF3/Mac..

comment:2 Changed 10 years ago by bill

Component: GeneralDijit
Resolution: wontfix
Status: newclosed

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.