   hook 'populate', 0, ->
     @clickedPoint = null
     @clickedBlock = null
+    @clickedBlockIsPaletteBlock = false
 
     @draggingBlock = null
     @draggingOffset = null

    if hitTestResult?
      # Record the hit test result (the block we want to pick up)
      @clickedBlock = hitTestResult

      # Move the cursor somewhere nearby
      @moveCursorTo @clickedBlock.start.next

      @fireEvent 'statechange', [false]

      console.log 'ACE SET VALUE ON MELT'
      @setAceValue @getValue()

      top = @findLineNumberAtCoordinate @scrollOffsets.main.y
      @aceEditor.scrollToLine top
