       @fireEvent 'statechange', [false]
 
       console.log 'ACE SET VALUE ON MELT'
-      @aceEditor.setValue @getValue(), -1
+      @setAceValue @getValue()
 
       top = @findLineNumberAtCoordinate @scrollOffsets.main.y
       @aceEditor.scrollToLine top


      # Now we are done with the "clickedX" suite of stuff.
      @clickedPoint = @clickedBlock = null

      @begunTrash = @wouldDelete position


    if @currentlyUsingBlocks
      return @addEmptyLine @tree.stringify()
    else
      @getAceValue()

  Editor::getAceValue = ->
    value = @aceEditor.getValue()
    @lastAceSeenValue = value

  Editor::setAceValue = (value) ->
    if value isnt @lastAceSeenValue
      console.log 'setting ace value'
      @aceEditor.setValue value
      @lastAceSeenValue = value


  # PUBLIC EVENT BINDING HOOKS
  # ===============================
