Search and Top Navigation
#8769 closed bug (fixed)
Opened November 02, 2012 08:13AM UTC
Closed November 09, 2012 05:54PM UTC
Last modified November 13, 2012 04:01PM UTC
Widget: "ui-state-disabled" blocks destroy to be triggered on remove
Reported by: | Mamen | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.2 |
Component: | ui.widget | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This applies to all widgets, self made or bundled in jQuery UI.
Under normal circumstances widgets will be destroyed if the DOM removes or replaces these elements. (For example by $("#someParent").remove() or $("#someParent").html("...new content..."))
However if the widget element has the class "ui-state-disabled", the "destroy" function will not be called. I believe this is a bug in Widget prototype where remove is bound to destroy widgets using _on. _on blocks events if the given class is present.
_on is a nice function, but it should be possible to turn off disabled-check.
Attachments (0)
Change History (6)
Changed November 02, 2012 01:09PM UTC by comment:1
priority: | minor → blocker |
---|---|
status: | new → open |
Changed November 09, 2012 10:54AM UTC by comment:2
blocking: | → 8758 |
---|
Changed November 09, 2012 05:53PM UTC by comment:3
blocking: | 8758 |
---|---|
summary: | "ui-state-disabled" blocks destroy to be triggered on remove → Widget: "ui-state-disabled" blocks destroy to be triggered on remove |
Changed November 09, 2012 05:54PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | open → closed |
Widget: Suppress disabled check when binding destroy to the remove event. Fixes #8769 - Widget: ui-state-disabled blocks destroy to be triggered on remove.
Changeset: 1cdeeccab0e76495842cad9d04e686aee802777d
Changed November 13, 2012 03:57PM UTC by comment:5
Widget: Suppress disabled check when binding destroy to the remove event. Fixes #8769 - Widget: ui-state-disabled blocks destroy to be triggered on remove.
(cherry picked from commit 1cdeeccab0e76495842cad9d04e686aee802777d)
Changeset: 0ad6d7a4a9f8a96b478c527f7afc8c33439e0426
Changed November 13, 2012 04:01PM UTC by comment:6
milestone: | 1.10.0 → 1.9.2 |
---|
Related to #8758.