Ticket #5005 (closed bug: fixed)
Widget factory does not clean up event bindings
| Reported by: | scott.gonzalez | Owned by: | scott.gonzalez |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.8 |
| Component: | ui.core | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The base widget binds three event handlers, but does not unbind them on destroy. See jquery-ui-dev thread.
Change History
comment:2 Changed 4 years ago by thetoolman
The fix should be as easy as adding these lines to the widget destroy method (approx line 300 in ui.core.js):
this.element.unbind("setData." + name);
this.element.unbind("getData." + name);
this.element.unbind("remove." + name);
Note: See
TracTickets for help on using
tickets.


Thank you Scott for reporting; here is my current workaround: