     @editThangView = null
     @onThangsChanged()
     @$el.find('.thangs-column').show()
-
+    
   preventDefaultContextMenu: (e) ->
     e.preventDefault()
     

  onSpriteMouseDown: (e) ->
    # Sprite clicks happen after stage clicks, but we need to know whether a sprite is being clicked.
    clearTimeout @backgroundAddClickTimeout

  onStageMouseDown: (e) ->
    if @addThangSprite
      # If we click on the background, we need to add @addThangSprite, but not if onSpriteMouseDown will fire.
      @backgroundAddClickTimeout = _.defer => @onExtantThangSelected {}

  onSpriteDragged: (e) ->
    return unless @selectedExtantThang and e.thang?.id is @selectedExtantThang?.id

    @render()  # do it again but without the loading screen
    @onLevelLoaded level: @level if @level and not @startsLoading

  onComponentsLoaded: ->
    return if @destroyed
    @supermodel.addCollection @componentCollection
    @startsLoading = not @thangTypes.loaded
