                               registerComplete()
 
                @meta.update(data.meta)
+            # Handle if an error occurs while loading new cards
+            jqxhr.fail () => card.failedToLoad() for card in selectedCards
 
       else 
          options = sets: (set.id for set in @sets() when set.active()).join(',')

         if (left = ANIMATION_TIME - (new Date() - @animationStartTime)) > 0
            setTimeout (=> @setCardLoaded()), left
         else @setCardLoaded()
         
   setToLoading: =>
      @selected(false)

   setCardLoaded: =>
      @cardImageLoaded(true)
      setTimeout (=> sortCards(@parent.cards)), ANIMATION_TIME
   
   toggleSelected: () => @selected(!@selected())


class window.Meta
   constructor: () ->
