We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4266e0c + bfd1422 commit f59bfe0Copy full SHA for f59bfe0
1 file changed
app/assets/javascripts/sync.coffee.erb
@@ -20,8 +20,8 @@ $ = jQuery
20
21
# Handle Turbolinks teardown, unsubscribe from all channels before transition
22
bindUnsubscribe: ->
23
- document.addEventListener "page:fetch", => @adapter.unsubscribeAll()
24
- document.addEventListener "page:restore", => @reexecuteScripts()
+ $(document).bind "page:fetch", => @adapter.unsubscribeAll()
+ $(document).bind "page:restore", => @reexecuteScripts()
25
26
27
# Handle Turbolinks cache restore, re-eval all sync script tags
0 commit comments