Bug Tracker

Modify

Ticket #4182 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [6239].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.