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

Remove element event listeners through base component #33429

Merged
merged 3 commits into from Apr 11, 2021

Conversation

GeoSot
Copy link
Member

@GeoSot GeoSot commented Mar 22, 2021

After some research, I found out that EventHandler saves all the custom events per element using namespace, and is capable to remove Handlers using only the element and its namespace (DATA_KEY).
So, probably is better to utilize the base-component to do some serious jobs

Preview: https://deploy-preview-33429--twbs-bootstrap.netlify.app/

@GeoSot GeoSot requested a review from a team as a code owner March 22, 2021 23:54
@GeoSot GeoSot force-pushed the gs-base-component-dispose-element-events branch from 952cf90 to 44df1fa Compare March 23, 2021 23:40
@GeoSot GeoSot force-pushed the gs-base-component-dispose-element-events branch 2 times, most recently from 1fc3f48 to c07d8b8 Compare April 5, 2021 21:29
js/src/scrollspy.js Outdated Show resolved Hide resolved
@GeoSot GeoSot force-pushed the gs-base-component-dispose-element-events branch from c07d8b8 to 1e77cc4 Compare April 8, 2021 21:27
@XhmikosR XhmikosR added this to Inbox in v5.0.0 via automation Apr 9, 2021
@XhmikosR XhmikosR moved this from Inbox to Approved in v5.0.0 Apr 9, 2021
@XhmikosR XhmikosR changed the title Remove element event-listeners through base-component Remove element event listeners through base component Apr 11, 2021
@XhmikosR XhmikosR merged commit 5664512 into main Apr 11, 2021
v5.0.0 automation moved this from Approved to Done Apr 11, 2021
@XhmikosR XhmikosR deleted the gs-base-component-dispose-element-events branch April 11, 2021 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants