aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-10-18 04:32:31 +0000
committerJohn Resig <jeresig@gmail.com>2006-10-18 04:32:31 +0000
commitca91d7896325b594ce60621c4e420dc84719302a (patch)
treecf0ec4effaeea2b87a330199f00e4882bdd5026e
parent14b09024cbe39bc16200448170ccbd183e3a9ec2 (diff)
downloadjquery-ca91d7896325b594ce60621c4e420dc84719302a.tar.gz
jquery-ca91d7896325b594ce60621c4e420dc84719302a.zip
Added fix for radio inputs becoming unchecked during an animation.
-rw-r--r--src/jquery/jquery.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 9768eee00..35616deab 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" )