Revert "Offset: Resolve strict mode ClientRect "no setter" exception"

This reverts commit 3befe5911a.
This commit is contained in:
Jason Bedard
2017-07-04 22:22:13 -07:00
parent 30b5ba5b92
commit 0fb6b9a860

View File

@@ -140,10 +140,8 @@ jQuery.fn.extend( {
// Incorporate borders into its offset, since they are outside its content origin
parentOffset = jQuery( offsetParent ).offset();
parentOffset = {
top: parentOffset.top + jQuery.css( offsetParent, "borderTopWidth", true ),
left: parentOffset.left + jQuery.css( offsetParent, "borderLeftWidth", true )
};
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
}
}