From ca91d7896325b594ce60621c4e420dc84719302a Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 18 Oct 2006 04:32:31 +0000 Subject: [PATCH 1/1] Added fix for radio inputs becoming unchecked during an animation. --- src/jquery/jquery.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9768eee..35616de 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1475,9 +1475,11 @@ jQuery.extend({ oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { - e = jQuery(e.cloneNode(true)).css({ - visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" - }).appendTo(e.parentNode)[0]; + e = jQuery(e.cloneNode(true)) + .find(":radio").removeAttr("checked").end() + .css({ + visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" + }).appendTo(e.parentNode)[0]; var parPos = jQuery.css(e.parentNode,"position"); if ( parPos == "" || parPos == "static" ) -- 1.7.10.4