Skip to content
Permalink
Browse files

set name to lowercase, since it's passed as initial caps

  • Loading branch information...
scottjehl
scottjehl committed Jan 13, 2011
1 parent 610ab13 commit 73d060b522ccf72847e67f56fea0e9b129ff273e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) {

0 comments on commit 73d060b

Please sign in to comment.
You can’t perform that action at this time.