 # We must declare a few
 # fields a populate time
 hook 'populate', 0, ->
-  @undoStack = []
-  @redoStack = []
-  @changeEventVersion = 0
+  @undoStack = [] # TODO session
+  @redoStack = [] # TODO session
+  @changeEventVersion = 0 # TODO session
 
 # Now we hook to ctrl-z to undo.
 hook 'keydown', 0, (event, state) ->

    @options.mode = @options.mode.replace /$\/ace\/mode\//, ''

    if @options.mode of modes
      @mode = new modes[@options.mode] @options.modeOptions
    else
      @mode = new coffee @options.modeOptions

    @draw = new draw.Draw()

    # No gutter decorations to start
    @gutterDecorations = {}

    # ## DOM Population
    # This stage of ICE Editor construction populates the given wrapper

    # Set up event bindings before creating a view
    @bindings = {}

    # Instantiate an Droplet editor view
    @view = new view.View @standardViewSettings # TODO session
    @paletteView = new view.View helper.extend {}, @standardViewSettings, { # TODO session
      showDropdowns: @options.showDropdownInPalette ? false
    }
    @dragView = new view.View @standardViewSettings # TODO session

    boundListeners = []

