We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd37f3 commit ed1f15dCopy full SHA for ed1f15d
scaladoc/resources/dotty_res/scripts/ux.js
@@ -1,4 +1,9 @@
1
+let observer = null;
2
+
3
function attachAllListeners() {
4
+ if (observer) {
5
+ observer.disconnect()
6
+ }
7
8
var elements = document.getElementsByClassName("documentableElement")
9
if (elements) {
@@ -96,7 +101,7 @@ function attachAllListeners() {
96
101
el.firstChild.classList.toggle("expand");
97
102
}))
98
103
99
- const observer = new IntersectionObserver(entries => {
104
+ observer = new IntersectionObserver(entries => {
100
105
entries.forEach(entry => {
106
const id = entry.target.getAttribute('id');
107
if (entry.intersectionRatio > 0) {
0 commit comments