Skip to content

Commit

Permalink
Merge branch 'szyablitsky-turbolinks-reload-fix'
Browse files Browse the repository at this point in the history
* szyablitsky-turbolinks-reload-fix:
  fix too early unmount
  • Loading branch information
justin808 committed May 20, 2016
2 parents 29cefa1 + 508c06d commit 40553fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_package/src/clientStartup.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ export function clientStartup(context) {
} else {
if (turbolinksVersion5()) {
debugTurbolinks(
'USING TURBOLINKS 5: document added event listeners turbolinks:before-cache and ' +
'USING TURBOLINKS 5: document added event listeners turbolinks:before-render and ' +
'turbolinks:load.'
);
document.addEventListener('turbolinks:before-cache', reactOnRailsPageUnloaded);
document.addEventListener('turbolinks:before-render', reactOnRailsPageUnloaded);
document.addEventListener('turbolinks:load', reactOnRailsPageLoaded);
} else {
debugTurbolinks(
Expand Down

0 comments on commit 40553fc

Please sign in to comment.