Sha256: f93fc4217cec084020eaf90b0425c454ba18d4ee1a054f254f5dba461eaab1a4

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

;(function(document, window) {
  window.ReactRailsUJS.TurbolinksClassicDeprecated = {
    // Before Turbolinks 2.4.0, Turbolinks didn't
    // have named events and didn't have a before-unload event.
    // Also, it didn't work with the Turbolinks cache, see
    // https://github.com/reactjs/react-rails/issues/87
    setup: function() {
      Turbolinks.pagesCached(0)
      ReactRailsUJS.handleEvent('page:change', function() {window.ReactRailsUJS.mountComponents()});
      ReactRailsUJS.handleEvent('page:receive', function() {window.ReactRailsUJS.unmountComponents()});
    }
  };
})(document, window);

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
react-rails-1.11.0 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.10.0 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.9.0 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.8.2 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.8.1 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.8.0 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.7.2 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.7.1 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.7.0 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.6.2 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js
react-rails-1.6.1 lib/assets/javascripts/react_ujs_turbolinks_classic_deprecated.js