Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #67 from lucasconstantino/master
Browse files Browse the repository at this point in the history
Added trigger call to inform sticky start/end.
  • Loading branch information
Anthony Garand committed Jul 22, 2014
2 parents eee4060 + 452f29d commit 7661194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
s.stickyElement
.css('position', '')
.css('top', '');
s.stickyElement.parent().removeClass(s.className);
s.stickyElement.trigger('sticky-end', [s]).parent().removeClass(s.className);
s.currentTop = null;
}
}
Expand All @@ -60,7 +60,7 @@
s.stickyElement.css('width', $(s.getWidthFrom).width());
}

s.stickyElement.parent().addClass(s.className);
s.stickyElement.trigger('sticky-start', [s]).parent().addClass(s.className);
s.currentTop = newTop;
}
}
Expand Down

0 comments on commit 7661194

Please sign in to comment.