From 73d060b522ccf72847e67f56fea0e9b129ff273e Mon Sep 17 00:00:00 2001
From: scottjehl <scott@scottjehl.com>
Date: Thu, 13 Jan 2011 14:20:00 -0500
Subject: [PATCH] set name to lowercase, since it's passed as initial caps

---
 src/dimensions.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dimensions.js b/src/dimensions.js
index a292899..9d8c354 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 ) {
-- 
1.7.10.4