Skip to content

Commit

Permalink
fix(cards): on load needs to reference the module not cards
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Sep 25, 2016
1 parent 21d1cfd commit 2a1f733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,17 @@
$(window).on('load', function () {
// Adjust the cards in a fan, except ones using KO.
$(".fan:not([data-bind])").each(function () {
cards.fan($(this));
module.fan($(this));
});

// Process any data-hand attributes
$(".hand[data-hand]").each(function () {
cards.hand($(this));
module.hand($(this));
});

// Call cards.play, when a card is clicked in an active hand.
$(".hand").on("click", "img.card", function () {
cards.play($(this));
module.play($(this));
});
});

Expand Down

0 comments on commit 2a1f733

Please sign in to comment.