]> source.dussan.org Git - jquery.git/commitdiff
Landed a minor fix for AIR (in the offset method).
authorJohn Resig <jeresig@gmail.com>
Wed, 6 Feb 2008 03:48:22 +0000 (03:48 +0000)
committerJohn Resig <jeresig@gmail.com>
Wed, 6 Feb 2008 03:48:22 +0000 (03:48 +0000)
src/offset.js

index 8ee5680deb287c35bf8669c2a903fdb441381454..b29fcc7c2914b68db2eeb1108d8b22e311c73770 100644 (file)
@@ -9,7 +9,7 @@ jQuery.fn.offset = function() {
                    offsetChild  = elem,
                    offsetParent = elem.offsetParent, 
                    doc          = elem.ownerDocument,
-                   safari2      = safari && parseInt(version) < 522,
+                   safari2      = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent),
                    fixed        = jQuery.css(elem, "position") == "fixed";
        
                // Use getBoundingClientRect if available