 
   parseUrl : ->
 
+    # State string format:
+    # x,y,z,mode,zoomStep[,rotX,rotY,rotZ][,activeNode]
+
     stateString = location.hash.slice(1)
     state = {}
 

    @listenTo(@model.flycam, "changed", @update)
    @listenTo(@model.flycam3d, "changed", @update)
    @listenTo(app.vent, "changeViewMode", @update)
<<<<<<< HEAD
=======

    if @model.skeletonTracing
      @listenTo(@model.skeletonTracing, "newActiveNode", @update)
>>>>>>> f99eb304b82dc730bd618525ac5139ce48e4eabf


  buildUrl : ->


        if stateArray.length >= 8
          state.rotation = _.map stateArray.slice(5, 8), (e) -> +e

          if stateArray[8]?
            state.activeNode = +stateArray[8]

        else
          if stateArray[5]?
            state.activeNode = +stateArray[5]

    return state

