diff options
author | John Resig <jeresig@gmail.com> | 2007-12-20 13:36:56 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-12-20 13:36:56 +0000 |
commit | 3261544c38ca70cc02c5eed7d0ab2c40c521a588 (patch) | |
tree | d6122c608ff124d483830755a46089a6148ed318 /src/core.js | |
parent | b740fe5632b8731a140f16a2f6855910ea6957b9 (diff) | |
download | jquery-3261544c38ca70cc02c5eed7d0ab2c40c521a588.tar.gz jquery-3261544c38ca70cc02c5eed7d0ab2c40c521a588.zip |
Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 33e109b92..c2f94d2b7 100644 --- a/src/core.js +++ b/src/core.js @@ -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 |