]> source.dussan.org Git - jquery.git/commitdiff
set name to lowercase, since it's passed as initial caps
authorscottjehl <scott@scottjehl.com>
Thu, 13 Jan 2011 19:20:00 +0000 (14:20 -0500)
committerscottjehl <scott@scottjehl.com>
Thu, 13 Jan 2011 19:20:00 +0000 (14:20 -0500)
src/dimensions.js

index a292899b91c3c9cf493de8740ad9146c9e0a1143..9d8c35454dd98d3f411af1619e439af71b3d175b 100644 (file)
@@ -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 ) {