Skip to content
Permalink
Browse files

safari2 should just check the browser and version

  • Loading branch information
brandonaaron committed Sep 11, 2007
1 parent ed51be1 commit 4c5f091d228477087fcaf8ab13d7473497a4aa80
Showing with 5 additions and 5 deletions.
  1. +5 −5 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 ) {

0 comments on commit 4c5f091

Please sign in to comment.
You can’t perform that action at this time.