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