]> source.dussan.org Git - jquery.git/commitdiff
Revert "Offset: Resolve strict mode ClientRect "no setter" exception"
authorJason Bedard <jason+github@jbedard.ca>
Wed, 5 Jul 2017 05:22:13 +0000 (22:22 -0700)
committerJason Bedard <jason+github@jbedard.ca>
Mon, 10 Jul 2017 16:03:08 +0000 (09:03 -0700)
This reverts commit 3befe5911af0cf516896482bb9ddf197c8cb8a8e.

src/offset.js

index f1d64d6a2c770af2e4535e19871ab729b806ba7b..c54144ed9d0718047238ac5fc3577e74f17b7411 100644 (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 );
                        }
                }