Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.

This commit is contained in:
John Resig 2007-12-20 13:36:56 +00:00
parent b740fe5632
commit 3261544c38
2 changed files with 7 additions and 2 deletions

View file

@ -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