aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2011-01-09 15:56:40 -0600
committerColin Snover <github.com@zetafleet.com>2011-01-09 15:56:40 -0600
commit885d06c8ef906fa11d130d7d567c871d20ef9ba9 (patch)
treed5c11466419196ba15e62dab9103bc95a611d4d9 /src/manipulation.js
parent8e59a99e0ade75dec434f246f52e8b3f7393f359 (diff)
downloadjquery-885d06c8ef906fa11d130d7d567c871d20ef9ba9.tar.gz
jquery-885d06c8ef906fa11d130d7d567c871d20ef9ba9.zip
Fix domManip leaks the first element when appending elements to multiple other elements.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 657aef7d1..206476c2d 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -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
);