From 523de777f933d3f50cdf1fe7473a23a368aedcad Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 16 Jun 2015 12:23:43 -0400 Subject: [PATCH] Offset: no need to check for ownerDocument --- src/offset.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/offset.js b/src/offset.js index 142c91893..b07bbe232 100644 --- a/src/offset.js +++ b/src/offset.js @@ -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+ -- 2.39.5