Commit 523de777 authored by Timmy Willison's avatar Timmy Willison

Offset: no need to check for ownerDocument

parent 6df39907
......@@ -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+
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment