Commit b876352d authored by Dave Methvin's avatar Dave Methvin

Offset: Fix comment typo, thanks @AurelioDeRosa

parent 04a652a9
...@@ -122,7 +122,7 @@ jQuery.fn.extend({ ...@@ -122,7 +122,7 @@ jQuery.fn.extend({
parentOffset = { top: 0, left: 0 }, parentOffset = { top: 0, left: 0 },
elem = this[ 0 ]; elem = this[ 0 ];
// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
if ( jQuery.css( elem, "position" ) === "fixed" ) { if ( jQuery.css( elem, "position" ) === "fixed" ) {
// we assume that getBoundingClientRect is available when computed position is fixed // we assume that getBoundingClientRect is available when computed position is fixed
offset = elem.getBoundingClientRect(); offset = elem.getBoundingClientRect();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment