diff options
author | scottjehl <scott@scottjehl.com> | 2011-01-13 14:20:00 -0500 |
---|---|---|
committer | scottjehl <scott@scottjehl.com> | 2011-01-13 14:20:00 -0500 |
commit | 73d060b522ccf72847e67f56fea0e9b129ff273e (patch) | |
tree | 76d710ea2f0df42acad5d58f78baa8638d89ab90 /src/dimensions.js | |
parent | 610ab137da38106f8c464f099a304ae3795c2231 (diff) | |
download | jquery-73d060b522ccf72847e67f56fea0e9b129ff273e.tar.gz jquery-73d060b522ccf72847e67f56fea0e9b129ff273e.zip |
set name to lowercase, since it's passed as initial caps
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index a292899b9..9d8c35454 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -36,7 +36,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) { if ( jQuery.isWindow( elem ) ) { // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] || - elem.document.body[ "client" + name ] || window.screen && window.screen[ name ]; + elem.document.body[ "client" + name ] || window.screen && window.screen[ name.toLowerCase() ]; // Get document width or height } else if ( elem.nodeType === 9 ) { |