Revert "Offset: allow offset setter to throw for disconnected elements"

This reverts commit 0d11c1182f.
This commit is contained in:
Timmy Willison
2015-06-15 10:56:29 -04:00
parent d8037c6d52
commit ee69e9c8b8
2 changed files with 10 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ jQuery.offset = {
elem.style.position = "relative";
}
curOffset = curElem.offset();
curOffset = curElem.offset() || { top: 0, left: 0 };
curCSSTop = jQuery.css( elem, "top" );
curCSSLeft = jQuery.css( elem, "left" );
calculatePosition = ( position === "absolute" || position === "fixed" ) &&