Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'destroy' of undefined #338

Closed
sqal opened this issue Sep 14, 2019 · 0 comments
Closed

Uncaught TypeError: Cannot read property 'destroy' of undefined #338

sqal opened this issue Sep 14, 2019 · 0 comments

Comments

@sqal
Copy link

sqal commented Sep 14, 2019

Bug Report

Hello. I would like to report a bug in the latest version of Headroom.js. The problem is that in rare cases the destroy method can be called before scrollTracker has been initialized in line #42 due to putting it in the setTimeout callback which is not canceled when destroying the headroom instance.

Reproduction: https://jsfiddle.net/d20mxrbz/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant