aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-14 23:43:58 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-14 23:43:58 +0000
commit7a04d1da54caec00b900620390df820fb85b1227 (patch)
treeeda02182316b5d8d124d63c33d9950cd669d1b51 /src/manipulation.js
parent991dafae16e44512c5107b90bc8ce9675d8f5c12 (diff)
downloadjquery-7a04d1da54caec00b900620390df820fb85b1227.tar.gz
jquery-7a04d1da54caec00b900620390df820fb85b1227.zip
We only support wrapping the first element around an element (all others are ignored). Fixes ticket #4903.
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 b5ace4d73..55017c196 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -24,7 +24,7 @@ jQuery.fn.extend({
if ( this[0] ) {
// The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).clone();
+ var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone();
if ( this[0].parentNode )
wrap.insertBefore( this[0] );