diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-05-12 19:42:53 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-05-13 13:33:43 -0400 |
commit | 6f676e692d48b4f979ba1dfc5d10f3f16954b381 (patch) | |
tree | 70a0a91fe8091440d35fc85ba77e74d51dc7193c /src/attributes.js | |
parent | ec829431feed29b393b1c22ca97e8af49f47e228 (diff) | |
download | jquery-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.js | 2 |
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; }, |