Fix domManip leaks the first element when appending elements to multiple other elements.

This commit is contained in:
Colin Snover 2011-01-09 15:56:40 -06:00
parent 8e59a99e0a
commit 885d06c8ef

View file

@ -346,7 +346,7 @@ jQuery.fn.extend({
table ?
root(this[i], first) :
this[i],
i > 0 || results.cacheable || this.length > 1 ?
i > 0 || results.cacheable || (this.length > 1 && i > 0) ?
jQuery(fragment).clone(true)[0] :
fragment
);