diff options
author | John Resig <jeresig@gmail.com> | 2009-12-08 11:21:24 -0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-12-08 11:21:24 -0800 |
commit | f5b649fafbd85a1973a9c46ca6bf163d9de857a7 (patch) | |
tree | a855fa21642e09365fd10bdd10566bbe2c518e53 /src | |
parent | 77510fec025e654a8d2fdc6b2cbb564c159b3204 (diff) | |
download | jquery-f5b649fafbd85a1973a9c46ca6bf163d9de857a7.tar.gz jquery-f5b649fafbd85a1973a9c46ca6bf163d9de857a7.zip |
Make sure that events are cloned for wrap, fixes #2977.
Diffstat (limited to 'src')
-rw-r--r-- | src/manipulation.js | 2 |
1 files changed, 1 insertions, 1 deletions
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] ); |