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

No need to check for Turbolinks defined. #769

Merged
merged 1 commit into from
Feb 11, 2014
Merged

Conversation

jrochkind
Copy link
Member

If there's no Turbolinks, we registered an event handler
for an event that will never be fired -- this should not harm
anything.

But the check introduces possible order-of-load errors, where
blacklight core accidentally ends up loaded before turbolinks,
so doesn't set up the event handler, but then turbolinks loads later,
so the event handler was needed, but didn't load. ran into this
with an engine that inserted it's 'require x.js' before turbolinks.
Best to avoid order-of-load dependencies if we can; we can.

If there's no Turbolinks, we registered an event handler
for an event that will never be hired -- this should not harm
anything.

But the check introduces possible order-of-load errors, where
blacklight core accidentally ends up loaded before turbolinks,
so doesn't set up the event handler, but then turbolinks loads later,
so the event handler was needed, but didn't load. ran into this
with an engine that inserted it's 'require x.js' before turbolinks.
Best to avoid order-of-load dependencies if we can; we can.
jcoyne added a commit that referenced this pull request Feb 11, 2014
@jcoyne jcoyne merged commit c6abd42 into master Feb 11, 2014
@jcoyne jcoyne deleted the skip_turbolinks_precheck branch February 11, 2014 15:09
@cbeer cbeer modified the milestones: 5.0.2, 5.1.0 Feb 12, 2014
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.

None yet

3 participants