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

Does 'Turbolinks Support' section in the documentation require updating? #82

Open
sb89 opened this issue Oct 14, 2015 · 1 comment
Open

Comments

@sb89
Copy link

sb89 commented Oct 14, 2015

I was looking at the documentation about the forward/back button in the 'Turbolinks Support' and I was trying to ensure my code is executed in this same manner for my project. I added the following code (which was taken from the documentation) to my application js:

$(document).on('page:restore', function(){
  // Manually evaluates the appended script tag.
  Paloma.executeHook();
});

This would not work for me. I had to modify it as below:

$(document).on('page:restore', function(){
  // Manually evaluates the appended script tag.
  Paloma.executeHook();
  Paloma.engine.start();
});

Is what I've done correct and the documentation just needs updating? Or have I missed something else?

@brendon
Copy link

brendon commented Oct 5, 2016

This might be the case since Paloma.start() is no longer called automatically and needs to always be explicitly called.

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

No branches or pull requests

2 participants