       element: element
       propsFunction: propsFunction
 
-    $(document).trigger 'reactTurbolinks:try'
+    @boot()

        ReactDOM.render React.createElement(component.element, component.propsFunction()), component.target[0]


    $(document).on 'turbolinks:before-cache', =>
      for own _name, component of @components
        continue if !component.loaded


###
class @ReactTurbolinks
  constructor: (@components = {}) ->
    $(document).on 'turbolinks:load', @boot
    $(document).on 'turbolinks:before-cache', @destroy


  boot: =>
      for own _name, component of @components
        continue if component.loaded

