We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54bee20 commit 0abd13cCopy full SHA for 0abd13c
lib/generators/rails_script/install/templates/base.js.coffee
@@ -37,7 +37,7 @@ class <%= RailsScript.app_namespace %>.Base
37
loads, i.e. "$(window).on 'scroll.app', myHandler"
38
###
39
setClearEventHandlers: ->
40
- jQuery(document).on 'page:before-change', ->
+ jQuery(document).on 'turbolinks:before-visit', ->
41
for element in [window, document]
42
for event, handlers of (jQuery._data(element, 'events') || {})
43
for handler in handlers
0 commit comments