mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 23:35:18 -05:00
Make sure that events are cloned for wrap, fixes #2977.
This commit is contained in:
@@ -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] );
|
||||
|
||||
Reference in New Issue
Block a user