 ###
 class @ReactTurbolinks
   constructor: (@components = {}) ->
-    $(document).on 'turbolinks:load reactTurbolinks:try', =>
+    $(document).on 'turbolinks:load', @boot
+    $(document).on 'turbolinks:before-cache', @destroy
+
+
+  boot: =>
       for own _name, component of @components
         continue if component.loaded
 

      element: element
      propsFunction: propsFunction

    $(document).trigger 'reactTurbolinks:try'

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


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

