 goog.provide 'spark.core.HistoryManager.TokenTransformer'
 
 goog.require 'spark.core.Object'
+goog.require 'spark.components.Input'
 goog.require 'goog.History'
 goog.require 'goog.history.Html5History'
 

  setToken: (token) ->
    @history.setToken token



###*

      @history.setPathPrefix  options.pathPrefix
      @history.setUseFragment no
    else
      @history = new goog.History null, null, @getHistoryInput_()

    goog.events.listen @history, goog.history.EventType.NAVIGATE, (e) =>
      @emit 'Navigated', e.token
