]> source.dussan.org Git - jquery.git/commitdiff
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 3aea325cd091afd33fc828d85a19262b4de0ace8..5221b7b5ed7b35572bb35b80b4157b7943a8d650 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