mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 23:45:06 -05:00
Offset: no need to check for ownerDocument
This commit is contained in:
@@ -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+
|
||||
|
||||
Reference in New Issue
Block a user