From: John Resig Date: Wed, 6 Feb 2008 03:48:22 +0000 (+0000) Subject: Landed a minor fix for AIR (in the offset method). X-Git-Tag: 1.2.4a~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e71e4a47f35a4380664b6cc209e482adea6b4b14;p=jquery.git Landed a minor fix for AIR (in the offset method). --- diff --git a/src/offset.js b/src/offset.js index 8ee5680de..b29fcc7c2 100644 --- a/src/offset.js +++ b/src/offset.js @@ -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