Skip to content

Commit 73d060b

Browse files
author
scottjehl
committed
set name to lowercase, since it's passed as initial caps
1 parent 610ab13 commit 73d060b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dimensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
3636
if ( jQuery.isWindow( elem ) ) {
3737
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
3838
return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
39-
elem.document.body[ "client" + name ] || window.screen && window.screen[ name ];
39+
elem.document.body[ "client" + name ] || window.screen && window.screen[ name.toLowerCase() ];
4040

4141
// Get document width or height
4242
} else if ( elem.nodeType === 9 ) {

0 commit comments

Comments
 (0)