From a6a28d24c183d4252bd269d89b3ddc5f4ae88863 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Mon, 10 Jul 2017 09:12:49 -0700 Subject: [PATCH] Offset: fix error from bad merge in #3695 --- src/offset.js | 4 ++-- 1 file 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 ); } } -- 2.39.5