anchor.diff:        }
       }
     };
  +
  +  // expose registerComponent globally
  +  window.registerComponent = ReactRailsUJS.registerComponent;
   
     // functions not exposed publicly
     function handleTurbolinksEvents () {
  
positive.code:         // Assume className is simple and can be found at top-level (window).
          // Fallback to eval to handle cases like 'My.React.ComponentName'.
  
          var constructor = window.reactComponents[className] || eval.call(window, className);
          var propsJson = node.getAttribute(window.ReactRailsUJS.PROPS_ATTR);
          var props = propsJson && JSON.parse(propsJson);
  
  
negative.code:   // jQuery is optional. Use it to support legacy browsers.
    var $ = (typeof window.jQuery !== 'undefined') && window.jQuery;
  
    // create the  namespace
    window.ReactRailsUJS = {
      CLASS_NAME_ATTR: 'data-react-class',
      PROPS_ATTR: 'data-react-props',
      RAILS_ENV_DEVELOPMENT: <%= Rails.env == "development" %>,
      reactComponents: {},
      // helper method for the mount and unmount methods to find the
      // `data-react-class` DOM elements
      findDOMNodes: function(searchSelector) {
  