summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cao-common.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/cao-common.js b/cao-common.js
index cc29ddb..c911b31 100644
--- a/cao-common.js
+++ b/cao-common.js
@@ -42,7 +42,10 @@ var CAO = function() {
var idx = result['cards'][i][0];
var desc = result['cards'][i][1];
- white_cards[idx] = desc;
+ white_cards[idx] = {
+ 'desc': desc,
+ 'event': self.gen_callback_white_card(idx)
+ };
self.on_show_white_card(idx, desc)
}
@@ -97,7 +100,10 @@ var CAO = function() {
var idx = result['card']['id'];
var desc = result['card']['desc'];
- white_cards[idx] = desc;
+ white_cards[idx] = {
+ 'desc': desc,
+ 'event': self.gen_callback_white_card(idx)
+ };
self.on_show_white_card(idx, desc);
};