mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
safari2 should just check the browser and version
This commit is contained in:
parent
ed51be1622
commit
4c5f091d22
@ -5,11 +5,11 @@ jQuery.fn.offset = function() {
|
|||||||
var left = 0, top = 0, elem = this[0], results;
|
var left = 0, top = 0, elem = this[0], results;
|
||||||
|
|
||||||
if ( elem ) with ( jQuery.browser ) {
|
if ( elem ) with ( jQuery.browser ) {
|
||||||
var absolute = jQuery.css(elem, "position") == "absolute",
|
var absolute = jQuery.css(elem, "position") == "absolute",
|
||||||
parent = elem.parentNode,
|
parent = elem.parentNode,
|
||||||
offsetParent = elem.offsetParent,
|
offsetParent = elem.offsetParent,
|
||||||
doc = elem.ownerDocument,
|
doc = elem.ownerDocument,
|
||||||
safari2 = safari && !absolute && parseInt(version) < 522;
|
safari2 = safari && parseInt(version) < 522;
|
||||||
|
|
||||||
// Use getBoundingClientRect if available
|
// Use getBoundingClientRect if available
|
||||||
if ( elem.getBoundingClientRect ) {
|
if ( elem.getBoundingClientRect ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user