Opened 13 years ago
Closed 13 years ago
#5005 closed bug (fixed)
Widget factory does not clean up event bindings
Reported by: | Scott González | Owned by: | Scott González |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8 |
Component: | ui.core | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The base widget binds three event handlers, but does not unbind them on destroy. See jquery-ui-dev thread.
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
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);
comment:3 Changed 13 years ago by
Owner: | set to scott.gonzalez |
---|---|
Status: | new → accepted |
Fixed in new widget factory in dev branch in r3544.
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fixed in trunk in r3621 with merge.
Note: See
TracTickets for help on using
tickets.
Thank you Scott for reporting; here is my current workaround: