diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2017-07-10 09:12:49 -0700 |
---|---|---|
committer | Jason Bedard <jason+github@jbedard.ca> | 2017-07-10 09:31:49 -0700 |
commit | a6a28d24c183d4252bd269d89b3ddc5f4ae88863 (patch) | |
tree | 87bc034d326e7da9514fb207fc265a5ecb4096f8 /src | |
parent | 0fb6b9a8609f93bb44276cc7cc59b4fe77c1c5fd (diff) | |
download | jquery-a6a28d24c183d4252bd269d89b3ddc5f4ae88863.tar.gz jquery-a6a28d24c183d4252bd269d89b3ddc5f4ae88863.zip |
Offset: fix error from bad merge in #3695
Diffstat (limited to 'src')
-rw-r--r-- | src/offset.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js index c54144ed9..2ef0adb04 100644 --- a/src/offset.js +++ b/src/offset.js @@ -140,8 +140,8 @@ jQuery.fn.extend( { // Incorporate borders into its offset, since they are outside its content origin parentOffset = jQuery( offsetParent ).offset(); - parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); - parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); + parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true ); + parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true ); } } |