mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Merge branch 'master' of https://github.com/russtacular/jquery into russtacular-master
This commit is contained in:
commit
c1d719b580
@ -30,7 +30,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {
|
|||||||
|
|
||||||
// Make sure we're not dealing with a disconnected DOM node
|
// Make sure we're not dealing with a disconnected DOM node
|
||||||
if ( !box || !jQuery.contains( docElem, elem ) ) {
|
if ( !box || !jQuery.contains( docElem, elem ) ) {
|
||||||
return box || { top: 0, left: 0 };
|
return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
var body = doc.body,
|
var body = doc.body,
|
||||||
|
Loading…
Reference in New Issue
Block a user