               @currentHighlightedPaletteBlock = block
           else if block is @currentHighlightedPaletteBlock
             @currentHighlightedPaletteBlock = null
-            @clearPalettehighlightCanvas()
+            @clearPaletteHighlightCanvas()
 
         hoverDiv.addEventListener 'mouseout', (event) =>
           if block is @currentHighlightedPaletteBlock

    @aceEditor.getSession().setTabSize 2

    @aceEditor.on 'change', =>
      if @currentlyUsingBlogs and not @suppressAceChangeEvent
        @copyAceEditor()

    @currentlyUsingBlocks = true

  # SCROLLING SUPPORT
  # ================================

  hook 'populate', 2, ->
    @scrollOffsets = {
      main: new @draw.Point 0, 0
      palette: new @draw.Point 0, 0
