Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $.winSizeSpy().on('scrollSpy:winSize', funcy)

# Contributions

Please provide pull requests for additional features. Test cases would be most weclome!
Please provide pull requests for additional features. Test cases would be most welcome!

Thank you contributors:

Expand Down
6 changes: 3 additions & 3 deletions scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
var lastTick = element.data('scrollSpy:ticks');
if (typeof lastTick != 'number') {
// entered into view
element.triggerHandler('scrollSpy:enter');
element.trigger('scrollSpy:enter');
}

// update tick id
Expand All @@ -84,7 +84,7 @@
var lastTick = element.data('scrollSpy:ticks');
if (typeof lastTick == 'number' && lastTick !== ticks) {
// exited from view
element.triggerHandler('scrollSpy:exit');
element.trigger('scrollSpy:exit');
element.data('scrollSpy:ticks', null);
}
});
Expand Down Expand Up @@ -222,4 +222,4 @@
return $.scrollSpy($(this), options);
};

})(jQuery);
})(jQuery);