    setCardLoaded: =>
       @cardImageLoaded(true)
       setTimeout (=> sortCards(@parent.cards)), ANIMATION_TIME
-
-   # openDialog: () => @parent.dialogControl.open(@)
    
    toggleSelected: () => @selected(!@selected())
 
-   # fetchNewCard: () =>
-   #    @setToLoading()
-   #    options =
-   #       sets: (s.id for s in @parent.dialogControl.sets when s.active()).join(',')
-   #       cards: (c.id for c in @parent.cards()).join(',')
-   #       types: (t.id for t in @parent.dialogControl.types when t.active()).join(',')
-      
-   #    $.getJSON '/cards/single', options, (data) =>
-   #       @setData(data, @parent.sets())
 
 class window.Meta
    constructor: () ->

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

            
            # Set cards to loading and get new cards
            card.setToLoading() for card in selectedCards
            jqxhr = $.getJSON '/cards/kingdom', options, (data) =>
               index = 0
               sets = @sets()
               imagesLeftToLoad = selectedCards.length
