Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.
This commit is contained in:
parent
b740fe5632
commit
3261544c38
2 changed files with 7 additions and 2 deletions
|
@ -498,7 +498,7 @@ jQuery.fn = jQuery.prototype = {
|
|||
|
||||
jQuery.each(elems, function(){
|
||||
var elem = clone ?
|
||||
this.cloneNode( true ) :
|
||||
jQuery( this ).clone( true )[0] :
|
||||
this;
|
||||
|
||||
// execute all scripts after the elements have been injected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue