     _.extend(@, Backbone.Events)
 
 
-  parseUrl : (url)->
+  parseUrl : ->
 
-    stateString = url.match(/^.*#([\d.-]*(?:,[\d.-]*)*)$/)?[1]
+    stateString = location.hash.slice(1)
     state       =
       position : null
       mode : null

    @model.flycam3d.on
      changed : => @update()

    @listenTo(app.vent, "changeViewMode", @update)


  buildUrl : ->


  constructor : (@model) ->

    @baseUrl      = document.location.pathname
    @initialState = @parseUrl()

    @update = _.throttle(
      => location.replace(@buildUrl())
