Skip to content
Permalink
Browse files

Offset: Fix comment typo, thanks @AurelioDeRosa

  • Loading branch information
dmethvin committed Dec 19, 2013
1 parent 8419010 commit bb3fff9ac2c7c8b07809219305d7f86d282fd84f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/offset.js
@@ -117,7 +117,7 @@ jQuery.fn.extend({
elem = this[ 0 ],
parentOffset = { top: 0, left: 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" ) {
// We assume that getBoundingClientRect is available when computed position is fixed
offset = elem.getBoundingClientRect();

0 comments on commit bb3fff9

Please sign in to comment.
You can’t perform that action at this time.