 
 export class ReactTurbolinks
   constructor: (@components = {}) ->
+    @navigated = false
     @targets = []
     $(document).on 'turbolinks:load', @destroyPersisted
     $(document).on 'turbolinks:load', @boot



  destroyPersisted: =>
    ReactDOM.unmountComponentAtNode(target) while target = @targets.pop()





  destroy: =>
      @navigated = true

      for own _name, component of @components
        for target in component.targets
          continue if target.dataset.reactTurbolinksLoaded != '1'
