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

Check that Turbolinks is not undefined before checking support #1433

Merged
merged 1 commit into from
Jul 7, 2016
Merged

Conversation

mattcg
Copy link
Contributor

@mattcg mattcg commented Jul 7, 2016

When Turbolinks is not being used, the variable will be undefined and you will get a ReferenceError: Turbolinks is not defined.

The fix is to check that Turbolinks is not undefined, rather than checking its truthiness.

When Turbolinks is not being used, the variable will be undefined and you will get a `ReferenceError: Turbolinks is not defined`.
@coveralls
Copy link

coveralls commented Jul 7, 2016

Coverage Status

Coverage increased (+0.5%) to 77.05% when pulling f760af8 on mattcg:patch-1 into f3c4544 on projectblacklight:master.

@jcoyne jcoyne merged commit 28b14dc into projectblacklight:master Jul 7, 2016
@cbeer
Copy link
Member

cbeer commented Jul 7, 2016

cc: @mejackreed ^^?

@mejackreed
Copy link
Contributor

Err... yeah. Thanks for the heads up.

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.

5 participants