git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that events are cloned for wrap, fixes #2977.
[jquery.git]
/
src
/
manipulation.js
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
1fe82fa
..
0c2753e
100644
(file)
--- 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
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] );
if ( this[0].parentNode ) {
wrap.insertBefore( this[0] );