Side navigation
#13019 closed bug (fixed)
Opened December 08, 2012 07:28PM UTC
Closed December 09, 2012 07:12PM UTC
Last modified December 09, 2012 07:47PM UTC
New pre-1.9 .replaceWith() behavior leaks data and events
| Reported by: | dmethvin | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9 |
| Component: | manipulation | Version: | git |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
The changes to 1.9 .replaceWith() that update the set for a disconnected element can leak jQuery data and events because the element is updated in the set without calling .remove() on the element in the set.
Upon reflection, I think it's a mistake to attempt to update the set anyway, since we always .pushStack() in those cases. So I think we should do the same as .before() or .after() and simply ignore disconnected elements.
Attachments (0)
Change History (4)
Changed December 08, 2012 07:28PM UTC by comment:1
| component: | unfiled → manipulation |
|---|---|
| milestone: | None → 1.9 |
| owner: | → dmethvin |
| priority: | undecided → high |
| status: | new → assigned |
| version: | 1.8.3 → git |