Skip to content

Commit 0fb6b9a

Browse files
committed
Revert "Offset: Resolve strict mode ClientRect "no setter" exception"
This reverts commit 3befe59.
1 parent 30b5ba5 commit 0fb6b9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/offset.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,8 @@ jQuery.fn.extend( {
140140

141141
// Incorporate borders into its offset, since they are outside its content origin
142142
parentOffset = jQuery( offsetParent ).offset();
143-
parentOffset = {
144-
top: parentOffset.top + jQuery.css( offsetParent, "borderTopWidth", true ),
145-
left: parentOffset.left + jQuery.css( offsetParent, "borderLeftWidth", true )
146-
};
143+
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
144+
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
147145
}
148146
}
149147

0 commit comments

Comments
 (0)