Skip to content

Remove jQuery from hashchange.js and controllers #1780

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

Merged
merged 2 commits into from
Jul 10, 2019

Conversation

kzys
Copy link
Contributor

@kzys kzys commented Jul 9, 2019

No description provided.

@kzys kzys mentioned this pull request Jul 9, 2019
@@ -29,11 +27,17 @@ function hashchange() {
}

export function initialize() {
$(window).on('hashchange', hashchange);
if (typeof window.addEventListener === 'undefined') {
Copy link

Choose a reason for hiding this comment

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

I think you will also need a typeof window !== 'undefined' guard here to work well in FastBoot. AFAICT you basically never need to run this initializer in SSR modes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Will do.

@locks locks merged commit 73c709e into rust-lang:master Jul 10, 2019
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.

3 participants