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

Update anime.running reference when clearing array on visibilitychange #564

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Update anime.running reference when clearing array on visibilitychange #564

merged 1 commit into from
Jul 25, 2019

Conversation

chrisbrown-io
Copy link
Contributor

@chrisbrown-io chrisbrown-io commented Mar 28, 2019

Fixes issue (#560, #466) with anime.running helper not working correctly after changing page/tab triggering visibilitychange event.

Fix assigns the new empty array to both anime.running AND activeInstances ensuring they are using the same reference, which allows anime.running to function normally.

If the multiple left-hand assignment is an issue (code style wise) I can happily change.

P.S - Thanks for the awesome lib!

@juliangarnier juliangarnier changed the base branch from master to v3.1.0 July 25, 2019 13:36
@juliangarnier juliangarnier merged commit 7af09c5 into juliangarnier:v3.1.0 Jul 25, 2019
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 this pull request may close these issues.

2 participants