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: clean SmoothScroll listeners on destroy #11519

Merged

Conversation

ncoden
Copy link
Contributor

@ncoden ncoden commented Sep 28, 2018

Description

Remove SmoothScroll click event listeners (to scroll the the pointed event) on destroy.

Others changes:

  • Use ES6 features in SmoothScroll
  • Fix various linting issues in SmoothScroll
  • Move SmoothScroll click event handling to its own method
  • Fix typo in the SmoothScroll click handler

Related to #11516

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (anything that would change an existing functionality)
  • Maintenance (refactor, code cleaning, development tools...)

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • The pull request title and template are correctly filled.
  • The pull request targets the right branch (develop or develop-v...).
  • My commits are correctly titled and contain all relevant information.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).

@ncoden
Copy link
Contributor Author

ncoden commented Sep 28, 2018

@DanielRuf I found this bug while searching for the forgotten typo mistake you pointed out at #11516. I kept the "points to" formulation for the reasons given at #11516 (comment).

@ncoden ncoden force-pushed the fix/clean-smoothscroll-events-on-destroy branch from 7067f9f to 65c26b1 Compare September 28, 2018 21:25
@ncoden ncoden merged commit 85dfbbc into foundation:develop Sep 29, 2018
ncoden added a commit to ncoden/foundation-sites that referenced this pull request Sep 29, 2018
…events-on-destroy for v6.5.0

7d717bf refactor: move SmoothScroll to ES6+ and fix linting issues
fd14999 refactor: move SmoothScroll click event handling to its own function
e0fbd09 fix: clean SmoothScroll events when destroyed
65c26b1 docs: fix typo in SmoothScroll click handler

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
@ncoden ncoden mentioned this pull request Sep 29, 2018
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant