safari2 should just check the browser and version
This commit is contained in:
parent
ed51be1622
commit
4c5f091d22
|
@ -9,7 +9,7 @@ jQuery.fn.offset = function() {
|
|||
parent = elem.parentNode,
|
||||
offsetParent = elem.offsetParent,
|
||||
doc = elem.ownerDocument,
|
||||
safari2 = safari && !absolute && parseInt(version) < 522;
|
||||
safari2 = safari && parseInt(version) < 522;
|
||||
|
||||
// Use getBoundingClientRect if available
|
||||
if ( elem.getBoundingClientRect ) {
|
||||
|
|
Loading…
Reference in a new issue