diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2017-07-04 22:22:13 -0700 |
---|---|---|
committer | Jason Bedard <jason+github@jbedard.ca> | 2017-07-10 09:03:08 -0700 |
commit | 0fb6b9a8609f93bb44276cc7cc59b4fe77c1c5fd (patch) | |
tree | 826bdb049db544d923ca1d6e7da3e4c68660be17 /src | |
parent | 30b5ba5b929d51f811e90e44f13b0d9e5cb728f2 (diff) | |
download | jquery-0fb6b9a8609f93bb44276cc7cc59b4fe77c1c5fd.tar.gz jquery-0fb6b9a8609f93bb44276cc7cc59b4fe77c1c5fd.zip |
Revert "Offset: Resolve strict mode ClientRect "no setter" exception"
This reverts commit 3befe5911af0cf516896482bb9ddf197c8cb8a8e.
Diffstat (limited to 'src')
-rw-r--r-- | src/offset.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/offset.js b/src/offset.js index f1d64d6a2..c54144ed9 100644 --- a/src/offset.js +++ b/src/offset.js @@ -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 ); } } |