summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cao-common.js2
-rw-r--r--cao-mobile.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/cao-common.js b/cao-common.js
index c71036d..1b1b309 100644
--- a/cao-common.js
+++ b/cao-common.js
@@ -17,7 +17,7 @@ var CAO = function() {
this.on_player_joined_game = function() { /* to override */ };
this.on_card_played = function() { /* to override */ };
this.on_cards_collected = function() { /* to override */ };
- this.on_updated_score = function(new_score) { };
+ this.on_updated_score = function(new_score) { /* to override */ };
var request_queue = [];
diff --git a/cao-mobile.js b/cao-mobile.js
index 6776bb6..58c5354 100644
--- a/cao-mobile.js
+++ b/cao-mobile.js
@@ -107,10 +107,10 @@ $(document).ready(function() {
cao.on_judge_needed = function() {
$all.hide();
$become_judge.show();
+ cao.on_updated_score = function(score) {
+ $score_value.text(score);
};
- cao.on_updated_score = function(score) {
- $score_value.html(score);
};
cao.run();