 
   # PALETTE EVENT
   # =================================
-  hook 'set_palette', 0, ->
+  hook 'rebuild_palette', 0, ->
     @fireEvent 'changepalette', []
 
   # TOUCHSCREEN SUPPORT


      clickHandler = =>
        do updatePalette
        for event in editorBindings.set_palette
          event.call this

      paletteGroupHeader.addEventListener 'click', clickHandler
      paletteGroupHeader.addEventListener 'touchstart', clickHandler

    'redraw_main': []       # whenever we need to redraw the main canvas
    'redraw_palette': []    # repaint the graphics of the palette
    'rebuild_palette': []   # redraw the paltte, both graphics and elements

    'mousedown': []
    'mousemove': []
