X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=c309428ead7d15539bad9dcd9f2c9d712edf2473;hb=7820594c6630c0018a60e1c9c7bcacf78de06fb4;hp=e1840a6bf4c75f4ebfd512b4e6f0663ac3d318a6;hpb=c66935db9d6068087f1fca83626db0b9280343e2;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index e1840a6..c309428 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; }) ); },