         ctx: @mainCtx
         draw: @draw
 
+      # Set up event bindings before creating a view
+      @bindings = {}
+
       # Instantiate an ICE editor view
       @view = new view.View extend_ @standardViewSettings, respectEphemeral: true
       @dragView = new view.View extend_ @standardViewSettings, respectEphemeral: false

    '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
    'set_palette': []       # whenever we switch palette categories

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

    if @currentHighlightedPaletteBlock?
      @paletteHighlightPath.draw @paletteHighlightCtx

  hook 'rebuild_palette', 1, ->
    # Remove the existent blocks
    @paletteScrollerStuffing.innerHTML = ''

