Permalink
Browse files

Offset: no need to check for ownerDocument

  • Loading branch information...
timmywil committed Jun 16, 2015
1 parent 6df3990 commit 523de777f933d3f50cdf1fe7473a23a368aedcad
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/offset.js
View
@@ -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+

0 comments on commit 523de77

Please sign in to comment.