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

Run service teardown code in willDestroy() #257

Merged
merged 2 commits into from
Aug 1, 2020

Conversation

SergeAstapov
Copy link
Contributor

See DockYard/ember-in-viewport#241 for more details

@@ -124,8 +124,6 @@ class EmberRouterScroll extends EmberRouter {
if (callbackRequestId) {
window.cancelAnimationFrame(callbackRequestId);
}

super.destroy(...arguments);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want super here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snewcomer good point. Reverted, just in case

Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question but otherwise thank you!

Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@snewcomer snewcomer merged commit d6cc035 into DockYard:master Aug 1, 2020
@SergeAstapov SergeAstapov deleted the patch-1 branch August 2, 2020 01:16
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.

2 participants