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

fix: Correctly detach event listeners #2737

Merged
merged 1 commit into from Jul 10, 2020
Merged

fix: Correctly detach event listeners #2737

merged 1 commit into from Jul 10, 2020

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Jul 10, 2020

#2725 introduced the issue where not all event listeners are detached correctly.
Valid fix was to call original removeEventListener on __sentry_wrapped__ (our version) and original callback. Not twice on the original as I mistakenly did this in the initial fix.

Fixes #2734

@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jul 10, 2020

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 17.1836 kB) (ES6: 16.2861 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against a8be7d0

@kamilogorek kamilogorek merged commit 144413f into master Jul 10, 2020
@kamilogorek kamilogorek deleted the listeners-fix branch July 10, 2020 10:56
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.

Couldn't removeEventListener on version 5.19.1 in some cases
3 participants