mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Offset: no need to check for ownerDocument
This commit is contained in:
parent
6df399073c
commit
523de777f9
@ -88,14 +88,14 @@ jQuery.fn.extend({
|
||||
});
|
||||
}
|
||||
|
||||
var docElem, win, rect,
|
||||
elem = this[ 0 ],
|
||||
doc = elem && elem.ownerDocument;
|
||||
var docElem, win, rect, doc,
|
||||
elem = this[ 0 ];
|
||||
|
||||
if ( !doc ) {
|
||||
if ( !elem ) {
|
||||
return;
|
||||
}
|
||||
|
||||
doc = elem.ownerDocument;
|
||||
docElem = doc.documentElement;
|
||||
|
||||
// Support: IE<=11+
|
||||
|
Loading…
Reference in New Issue
Block a user