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,
|
var docElem, win, rect, doc,
|
||||||
elem = this[ 0 ],
|
elem = this[ 0 ];
|
||||||
doc = elem && elem.ownerDocument;
|
|
||||||
|
|
||||||
if ( !doc ) {
|
if ( !elem ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doc = elem.ownerDocument;
|
||||||
docElem = doc.documentElement;
|
docElem = doc.documentElement;
|
||||||
|
|
||||||
// Support: IE<=11+
|
// Support: IE<=11+
|
||||||
|
Loading…
Reference in New Issue
Block a user