Skip to main content

Bug Tracker

Side navigation

#5030 closed bug (worksforme)

Opened August 10, 2009 11:27PM UTC

Closed August 11, 2009 08:36PM UTC

problem with appendTo().end()

Reported by: fazzius Owned by:
Priority: minor Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

Does anyone experienced issue with those chained commands?

Example:

(not working)

$("#space_b").find("img:not(.transfer)").appendTo(cell_toSwap).css('opacity', opacity[num] ).end().find("img.transfer").removeClass("transfer");

workaround: (separate statements)

$("#space_b").find("img:not(.transfer)").appendTo(cell_toSwap).css('opacity', opacity[num] );

$("#space_b").find("img.transfer").removeClass("transfer");

Attachments (0)
Change History (1)

Changed August 11, 2009 08:36PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

.appendTo() is a destructive operation, just like .find(). You need to .end() again in your chain to do what you want.