aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-12 19:42:53 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-13 13:33:43 -0400
commit6f676e692d48b4f979ba1dfc5d10f3f16954b381 (patch)
tree70a0a91fe8091440d35fc85ba77e74d51dc7193c /src/attributes.js
parentec829431feed29b393b1c22ca97e8af49f47e228 (diff)
downloadjquery-6f676e692d48b4f979ba1dfc5d10f3f16954b381.tar.gz
jquery-6f676e692d48b4f979ba1dfc5d10f3f16954b381.zip
Use prop to retrieve boolean properties (so the selected hook will be used)
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 bc26d735a..f1d2944e2 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -466,7 +466,7 @@ jQuery.extend({
boolHook = {
get: function( elem, name ) {
// Align boolean attributes with corresponding properties
- return elem[ jQuery.propFix[ name ] || name ] ?
+ return jQuery.prop( elem, name ) ?
name.toLowerCase() :
undefined;
},