Commit 73d060b5 authored by scottjehl's avatar scottjehl

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

parent 610ab137
...@@ -36,7 +36,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) { ...@@ -36,7 +36,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
if ( jQuery.isWindow( elem ) ) { if ( jQuery.isWindow( elem ) ) {
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] || 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 // Get document width or height
} else if ( elem.nodeType === 9 ) { } else if ( elem.nodeType === 9 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment