Skip to content

Commit

Permalink
fixup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Oct 6, 2016
1 parent 7e9ca03 commit 21c37fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fbjs/src/core/dom/getElementRect.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const containsNode = require('containsNode');
* @return {object}
*/
function getElementRect(elem) {
const docElem = (elem.ownerDocument || document).documentElement;
const docElem = elem.ownerDocument.documentElement;

// FF 2, Safari 3 and Opera 9.5- do not support getBoundingClientRect().
// IE9- will throw if the element is not in the document.
Expand Down

0 comments on commit 21c37fe

Please sign in to comment.