X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=blobdiff_plain;f=client.coffee;h=5459c7806c030d0ffc3368534a88bd53434ab7d0;hp=139158db1c6824b5eda6458c5ed171c54ec2e1ec;hb=a916776d54224addfe519950f2ea6b7c15bfb16c;hpb=bb72a635150495387543c86077ccfcec853a5f11 diff --git a/client.coffee b/client.coffee index 139158d..5459c78 100644 --- a/client.coffee +++ b/client.coffee @@ -201,7 +201,7 @@ initialize_cards = () -> update_pile_views() -# also makes sure all non-piled cards are instantiated FIXME rename +# also makes sure all non-piled cards are instantiated update_pile_views = -> ps = {} for card in state.cards @@ -253,7 +253,7 @@ init = -> state = window.game_model.new me state.on 'move', (agent, card, x, y, z, pile) -> - update_pile_views() + update_pile_views() # ensures instantiation of all visible cards if state.cards[card].view? # the card is visible # show it face down if it's in the other player's hand state.cards[card].view.toggleClass 'your_hand', in_your_hand state.cards[card]