Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Oct 18, 2007
1 parent 5421dfd commit 5736e8d90d5c7961e19cb707301d9f58daa0aa3b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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 ] :

0 comments on commit 5736e8d

Please sign in to comment.
You can’t perform that action at this time.