Skip to content

Commit

Permalink
fix too early unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
szyablitsky authored and justin808 committed May 20, 2016
1 parent 29cefa1 commit 508c06d
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 508c06d

Please sign in to comment.