aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery/jquery.js')
-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;
}) );
},