 
     root.currentStateIndex++
     @reverting = false
-    @refreshDisplay()
 
   getTrackedActions: ->
     @getRoot().trackedActions


    root.currentStateIndex--
    @reverting = false
    @refreshDisplay()

  redo: ->
    @reverting = true

          when 'ObjectNode'
            @set restoreChange.path, restoreChange.node.data
          when 'ArrayNode'
            parentPath = restoreChange.node.parent.getPath()
            parentData = @get parentPath
            deleteIndex = parseInt (restoreChange.path.substring (restoreChange.path.lastIndexOf('/') + 1))

            if deleteIndex < parentData.length
              parentData.splice deleteIndex, 0, restoreChange.node.data
              @set parentPath, parentData
            else
              @insert parentPath, restoreChange.node.data

      when 'edit'
        @set restoreChange.path, restoreChange.oldData
