]> source.dussan.org Git - jquery.git/commitdiff
safari2 should just check the browser and version
authorBrandon Aaron <brandon.aaron@gmail.com>
Tue, 11 Sep 2007 02:13:00 +0000 (02:13 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Tue, 11 Sep 2007 02:13:00 +0000 (02:13 +0000)
src/offset.js

index 9c43296fe617743688d0924c0e16af974a7c16b9..3c63aae920cf2d2e6292088b03ddb8787b15ad33 100644 (file)
@@ -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 ) {