Commit 5736e8d9 authored by John Resig's avatar John Resig

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

parent 5421dfde
...@@ -1296,7 +1296,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ ...@@ -1296,7 +1296,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
jQuery.browser.opera && document.body[ "client" + name ] || jQuery.browser.opera && document.body[ "client" + name ] ||
// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths) // 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 // 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 ] : document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :
......
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