Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit b36c688

Browse files
committed
Rename method to be more descriptive
1 parent bfe48dc commit b36c688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/shared/table-of-contents/table-of-contents.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class TableOfContents implements OnInit {
6969
Observable.fromEvent(this._scrollContainer, 'scroll')
7070
.takeUntil(this._destroyed)
7171
.debounceTime(10)
72-
.subscribe(() => this.onScroll());
72+
.subscribe(() => this.setActiveLink());
7373
});
7474
}
7575

@@ -108,7 +108,7 @@ export class TableOfContents implements OnInit {
108108
});
109109
}
110110

111-
private onScroll(): void {
111+
private setActiveLink(): void {
112112
this._activeLinkIndex = this.links
113113
.findIndex((link, i) => this.isLinkActive(link, this.links[i + 1]));
114114
}

0 commit comments

Comments
 (0)