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