From 7a04d1da54caec00b900620390df820fb85b1227 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 14 Jul 2009 23:43:58 +0000 Subject: We only support wrapping the first element around an element (all others are ignored). Fixes ticket #4903. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/manipulation.js') 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] ); -- cgit v1.2.3