lib/assets/javascripts/react_ujs.js.erb in react-rails-1.1.0 vs lib/assets/javascripts/react_ujs.js.erb in react-rails-1.2.0

- old
+ new

@@ -87,13 +87,11 @@ } function handleNativeEvents() { if ($) { $(function() {window.ReactRailsUJS.mountComponents()}); - $(window).unload(function() {window.ReactRailsUJS.unmountComponents()}); } else { document.addEventListener('DOMContentLoaded', function() {window.ReactRailsUJS.mountComponents()}); - window.addEventListener('unload', function() {window.ReactRailsUJS.unmountComponents()}); } } if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) { handleTurbolinksEvents();