aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-12-16 10:39:19 -0500
committerRichard Gibson <richard.gibson@gmail.com>2012-12-16 10:39:19 -0500
commit06f46dad9307c17d4aad6add2d3a9b0b2d3b451a (patch)
treec2120879df7da9bdc720e15f5a75681e564ccc93 /src/attributes.js
parent30e2ffbeb869bb2f65ef139633c68a1c62f0e892 (diff)
downloadjquery-06f46dad9307c17d4aad6add2d3a9b0b2d3b451a.tar.gz
jquery-06f46dad9307c17d4aad6add2d3a9b0b2d3b451a.zip
let .attr(checked|selected, true) update the property
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index bba4efe39..6da68ef11 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -489,7 +489,7 @@ boolHook = {
// Use defaultChecked and defaultSelected for oldIE
} else {
- elem[ jQuery.camelCase( "default-" + name ) ] = true;
+ elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
}
return name;