Skip to content

Commit

Permalink
Proxied Animations Cleanup fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bramus committed Dec 23, 2023
1 parent 0803f77 commit 3312176
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/scroll-timeline-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,4 @@ export function initCSSPolyfill() {
}
});
});

// Clear cache containing the ProxyAnimation instances when leaving the page.
// See https://github.com/flackr/scroll-timeline/issues/146#issuecomment-1698159183
// for details.
window.addEventListener('pagehide', (e) => {
proxyAnimations = new WeakMap();
}, false);
}

0 comments on commit 3312176

Please sign in to comment.