From 2a1f733eedc677de6724687ac4ad334069e88001 Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Mon, 26 Sep 2016 10:10:57 +1300 Subject: [PATCH] fix(cards): on load needs to reference the module not cards --- cards.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cards.js b/cards.js index 8e812f5..e237ad4 100644 --- a/cards.js +++ b/cards.js @@ -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)); }); });