vendor/assets/javascripts/rails_script/init.coffee in rails_script-2.0.2 vs vendor/assets/javascripts/rails_script/init.coffee in rails_script-2.0.3

- old
+ new

@@ -25,10 +25,10 @@ if typeof $this.afterAction == 'function' $this.afterAction action # Clear event handlers on navigation RailsScript.setClearEventHandlers = -> - jQuery(document).on 'page:before-change turbolinks:before-visit', -> + jQuery(document).on 'page:before-change turbolinks:before-render', -> for element in [window, document] for event, handlers of (jQuery._data(element, 'events') || {}) for handler in handlers if handler? && handler.namespace == '' jQuery(element).off event, handler.handler \ No newline at end of file