     @requireLevelEquipment()
     @onSelectionChanged()
 
-    
+
   #- Select/equip helpers
 
   clearSelection: ->


  afterRender: ->
    super()
    return unless @supermodel.finished()

    @setUpDraggableEventsForAvailableEquipment()
    @setUpDraggableEventsForEquippedArea()

      'heroClass',
      'i18n'
    ]
    @supermodel.loadCollection(@items, 'items')
    @equipment = {}  # Assign for real when we have loaded the session and items.

  onItemsLoaded: ->
    item.notInLevel = true for item in @items.models
    @equipment = @options.equipment or @options.session?.get('heroConfig')?.inventory or me.get('heroConfig')?.inventory or {}
    @equipment = $.extend true, {}, @equipment
    @requireLevelEquipment()
    @itemGroups = {}
    @itemGroups.availableItems = new Backbone.Collection()
