Ok, self[...] was BS, switching to window[...], bug #1748.

This commit is contained in:
John Resig 2007-10-18 17:25:08 +00:00
parent 5421dfdea9
commit 5736e8d90d

View file

@ -1296,7 +1296,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
jQuery.browser.opera && document.body[ "client" + name ] ||
// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
jQuery.browser.safari && self[ "inner" + name ] ||
jQuery.browser.safari && window[ "inner" + name ] ||
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :