From 7820594c6630c0018a60e1c9c7bcacf78de06fb4 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Fri, 23 Feb 2007 04:47:24 +0000 Subject: Fix for #921 --- src/jquery/jquery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; }) ); }, -- cgit v1.2.3