aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-02-23 04:47:24 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-02-23 04:47:24 +0000
commit7820594c6630c0018a60e1c9c7bcacf78de06fb4 (patch)
tree72a7feb29358cb699678a51afe99c0dc9195140a /src
parent44599e174b5d1f924def5a3950375ead12b9d21b (diff)
downloadjquery-7820594c6630c0018a60e1c9c7bcacf78de06fb4.tar.gz
jquery-7820594c6630c0018a60e1c9c7bcacf78de06fb4.zip
Fix for #921
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index e1840a6bf..c309428ea 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -824,7 +824,9 @@ jQuery.fn = jQuery.prototype = {
*/
clone: function(deep) {
return this.pushStack( jQuery.map( this, function(a){
- return a.cloneNode( deep != undefined ? deep : true );
+ var a = a.cloneNode( deep != undefined ? deep : true );
+ a.$events = null; // drop $events expando to avoid firing incorrect events
+ return a;
}) );
},