mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 03:05:08 -05:00
Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
This commit is contained in:
@@ -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" ) &&
|
||||
|
||||
Reference in New Issue
Block a user