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

🐛 use a ref copy instead to avoid listener traverse disordered while splicing #76

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

kuitos
Copy link
Member

@kuitos kuitos commented Sep 16, 2019

splice the same reference would cause the listener traverse disordered, see

storedTypeListeners.splice(storedTypeListeners.indexOf(listener), 1);


This change is Reviewable

@kuitos kuitos requested a review from howel52 September 16, 2019 13:42
@kuitos kuitos changed the title 🐛 use a refer copy instead to avoid listener traverse disordered while splicing 🐛 use a ref copy instead to avoid listener traverse disordered while splicing Sep 16, 2019
@howel52 howel52 merged commit 8d53f53 into master Sep 16, 2019
@howel52 howel52 deleted the bugfix/unlisten branch September 16, 2019 14:03
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