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

Turbolinks doesn't fire an event that prototype.js can observe #384

Closed
walterdavis opened this issue Jun 2, 2014 · 1 comment
Closed

Comments

@walterdavis
Copy link

I'm using Rails 4.1.2 and prototype_rails, and everything is working fine except that observing the page:load event is only possible using a "vanilla" observer:

document.addEventListener('page:load', do_whatever);

as opposed to the usual (and cross-browser):

document.observe('page:load', do_whatever);

Turbolinks is advertised as working well with prototype.js, and in my experience, it does. Just not for this sort of thing.

@reed reed closed this as completed in 7de4e46 Sep 13, 2014
@walterdavis
Copy link
Author

Thanks so much, very nice of you.

Walter

On Sep 13, 2014, at 7:19 PM, Nick Reed wrote:

Closed #384 via 7de4e46.


Reply to this email directly or view it on GitHub.

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