From 452f29d54e01ed37772052112534f04808501b58 Mon Sep 17 00:00:00 2001 From: Lucas Constantino Date: Mon, 7 Oct 2013 21:03:09 -0300 Subject: [PATCH] Added trigger call to inform sticky start/end. --- jquery.sticky.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.sticky.js b/jquery.sticky.js index 01809ab..8c17c1a 100644 --- a/jquery.sticky.js +++ b/jquery.sticky.js @@ -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; } } @@ -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; } }