Skip to content

Commit

Permalink
Revert "Offset: Resolve strict mode ClientRect "no setter" exception"
Browse files Browse the repository at this point in the history
This reverts commit 3befe59.
  • Loading branch information
jbedard committed Jul 9, 2017
1 parent 246d362 commit 7fcd1dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/offset.js
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 7fcd1dd

Please sign in to comment.