Ok, self[...] was BS, switching to window[...], bug #1748.
authorJohn Resig <jeresig@gmail.com>
Thu, 18 Oct 2007 17:25:08 +0000 (17:25 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 18 Oct 2007 17:25:08 +0000 (17:25 +0000)
src/core.js

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