Skip to content

Commit 76edbe0

Browse files
Martin Mouterdemgcrea
authored andcommitted
fix(scrollSpy) destroy scroll event handler
1 parent 9324c4b commit 76edbe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scrollspy/scrollspy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ angular.module('mgcrea.ngStrap.scrollspy', ['mgcrea.ngStrap.helpers.debounce', '
8888
// Unbind events
8989
scrollEl.off('click', this.checkPositionWithEventLoop);
9090
windowEl.off('resize', debouncedCheckPosition);
91-
scrollEl.off('scroll', debouncedCheckPosition);
91+
scrollEl.off('scroll', throttledCheckPosition);
9292
unbindViewContentLoaded();
9393
unbindIncludeContentLoaded();
9494
if (scrollId) {

0 commit comments

Comments
 (0)