Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

call to startListener() on "page:load" for turbolinks #30

Open
luctus opened this issue Jun 11, 2014 · 1 comment
Open

call to startListener() on "page:load" for turbolinks #30

luctus opened this issue Jun 11, 2014 · 1 comment

Comments

@luctus
Copy link

luctus commented Jun 11, 2014

If I scroll down to the end, the method stopListener() is called, then I go to another page, and finally come back to this page, pageless won't work, because it's not listening.

@luctus
Copy link
Author

luctus commented Jun 11, 2014

I'm not sure if this is the most elegant solution, but it's working for me.

I added this to the begining of the main function:

$(document).on('page:load', function(){
  settings.currentPage = 1;
  settings.distance = 100;
  settings.inited = FALSE;
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant