Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their event...
[jquery.git] / src / core.js
index 33e109b..c2f94d2 100644 (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