X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fmanipulation.js;h=19a6c22ba8d4dd4b7aac8b50da802d897d98473f;hp=1ef19f83b54ee56b2d7a2c2baf141b1e8c7dd0e1;hb=fa4c90987fc9aede4de3f41976cda91acad81736;hpb=375b78783825b9adab7a01541faf99f98ef7ecbd diff --git a/src/manipulation.js b/src/manipulation.js index 1ef19f8..19a6c22 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -503,6 +503,8 @@ jQuery.extend({ // proprietary methods to clear the events. Thanks to MooTools // guys for this hotness. + cloneFixAttributes( elem, clone ); + // Using Sizzle here is crazy slow, so we use getElementsByTagName // instead srcElements = elem.getElementsByTagName("*"); @@ -514,8 +516,6 @@ jQuery.extend({ for ( i = 0; srcElements[i]; ++i ) { cloneFixAttributes( srcElements[i], destElements[i] ); } - - cloneFixAttributes( elem, clone ); } // Copy the events from the original to the clone