diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-09-11 02:13:00 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-09-11 02:13:00 +0000 |
commit | 4c5f091d228477087fcaf8ab13d7473497a4aa80 (patch) | |
tree | 122740d117c6748aecbc11f487fb62f0400e1255 /src/offset.js | |
parent | ed51be16224d392ae0b539d7aa2db294973c624d (diff) | |
download | jquery-4c5f091d228477087fcaf8ab13d7473497a4aa80.tar.gz jquery-4c5f091d228477087fcaf8ab13d7473497a4aa80.zip |
safari2 should just check the browser and version
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/offset.js b/src/offset.js index 9c43296fe..3c63aae92 100644 --- a/src/offset.js +++ b/src/offset.js @@ -5,11 +5,11 @@ jQuery.fn.offset = function() { var left = 0, top = 0, elem = this[0], results; if ( elem ) with ( jQuery.browser ) { - var absolute = jQuery.css(elem, "position") == "absolute", - parent = elem.parentNode, - offsetParent = elem.offsetParent, - doc = elem.ownerDocument, - safari2 = safari && !absolute && parseInt(version) < 522; + var absolute = jQuery.css(elem, "position") == "absolute", + parent = elem.parentNode, + offsetParent = elem.offsetParent, + doc = elem.ownerDocument, + safari2 = safari && parseInt(version) < 522; // Use getBoundingClientRect if available if ( elem.getBoundingClientRect ) { |