From f5b649fafbd85a1973a9c46ca6bf163d9de857a7 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 8 Dec 2009 11:21:24 -0800 Subject: Make sure that events are cloned for wrap, fixes #2977. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/manipulation.js b/src/manipulation.js index 1fe82fa27..0c2753e96 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -48,7 +48,7 @@ jQuery.fn.extend({ if ( this[0] ) { // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(); + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); if ( this[0].parentNode ) { wrap.insertBefore( this[0] ); -- cgit v1.2.3