Fixed #1095 bug where radio buttons became unchecked during show(). Also added unit test and had to fix a selector test that was broken by the new testing div in test/index.html. Last made some whitespace changes.

This commit is contained in:
David Serduke 2007-11-16 23:39:23 +00:00
parent b9371a6ca4
commit e2ef3df86d
5 changed files with 69 additions and 38 deletions

View file

@ -765,7 +765,7 @@ jQuery.extend({
// Otherwise, we need to flip out more values
} else {
elem = jQuery( elem.cloneNode(true) )
.find(":radio").removeAttr("checked").end()
.find(":radio").removeAttr("checked").removeAttr("defaultChecked").end()
.css({
visibility: "hidden",
position: "absolute",