]> source.dussan.org Git - jquery.git/commitdiff
Added fix for radio inputs becoming unchecked during an animation.
authorJohn Resig <jeresig@gmail.com>
Wed, 18 Oct 2006 04:32:31 +0000 (04:32 +0000)
committerJohn Resig <jeresig@gmail.com>
Wed, 18 Oct 2006 04:32:31 +0000 (04:32 +0000)
src/jquery/jquery.js

index 9768eee002afede1e12198546b851dafc7c0c1e7..35616deab02450d5632b43b5421cc32afeb141e6 100644 (file)
@@ -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" )