Sha256: e8fc58103934b6c8054d5fbfe37ec92f2ef7719bc90566026fe9fe19e0e2cf45

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

;(function(document, window) {
  window.ReactRailsUJS.pjax = {
    // pjax support
    setup: function() {
      ReactRailsUJS.handleEvent('ready', function() {window.ReactRailsUJS.mountComponents()});
      ReactRailsUJS.handleEvent('pjax:end', function(e) {window.ReactRailsUJS.mountComponents(e.target)});
      ReactRailsUJS.handleEvent('pjax:beforeReplace', function(e) {window.ReactRailsUJS.unmountComponents(e.target)});
    }
  };
})(document, window);

Version data entries

9 entries across 9 versions & 1 rubygems

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