mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 13:14:59 -05:00
Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
This commit is contained in:
@@ -32,7 +32,7 @@ jQuery.offset = {
|
||||
elem.style.position = "relative";
|
||||
}
|
||||
|
||||
curOffset = curElem.offset() || { top: 0, left: 0 };
|
||||
curOffset = curElem.offset();
|
||||
curCSSTop = jQuery.css( elem, "top" );
|
||||
curCSSLeft = jQuery.css( elem, "left" );
|
||||
calculatePosition = ( position === "absolute" || position === "fixed" ) &&
|
||||
|
||||
Reference in New Issue
Block a user