From: John Resig Date: Wed, 18 Oct 2006 04:32:31 +0000 (+0000) Subject: Added fix for radio inputs becoming unchecked during an animation. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=ca91d7896325b594ce60621c4e420dc84719302a;hp=14b09024cbe39bc16200448170ccbd183e3a9ec2;p=jquery.git Added fix for radio inputs becoming unchecked during an animation. --- 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" )