Offset: no need to check for ownerDocument

This commit is contained in:
Timmy Willison 2015-06-16 12:23:43 -04:00
parent 6df399073c
commit 523de777f9

View File

@ -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+