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({ ...@@ -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+
......
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