Opened 13 years ago
Closed 13 years ago
#2313 closed defect (fixed)
Dojo ComboBox Widget Destruction Issue
Reported by: | Owned by: | haysmark | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
ComboBox? does not destroy itself properly, leading to a JavaScript? error. Could it have something to do with not disconnecting events?
Attachments (1)
Change History (6)
Changed 13 years ago by
Attachment: | test_ComboBox_destroy.html added |
---|
comment:1 Changed 13 years ago by
Owner: | changed from bill to Douglas Hays |
---|
comment:2 Changed 13 years ago by
There were two issues: first, dojo's destroy was not working.
Second, the combobox popup was connected to the destroy event. This is a problem because destroy will already try to destroy the popup recursively, so it would try to destroy the popup twice, creating another error.
Now, when you press the killit button in the test, the combobox disappears with no error.
comment:3 Changed 13 years ago by
Owner: | changed from Douglas Hays to haysmark@… |
---|
comment:4 Changed 13 years ago by
Owner: | changed from haysmark@… to haysmark |
---|
comment:5 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
test case