Modify ↓
Ticket #4182 (closed bug: fixed)
appendTo doesn't return inserted elements
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | core | Version: | 1.3.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Currently when calling appendTo (and similar methods) the original elements are returned - instead of the elements that were actually inserted. This means that code like this:
$("<p/>")
.appendTo("div")
.addClass("test");
Will only actually add the class to the first paragraph inserted.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in SVN rev [6239].