diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-09 01:28:17 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-09 01:28:17 +0100 |
commit | 00a675237958704ceea56b7e47a509e873d92705 (patch) | |
tree | b74928a84f2740994a6e1d41cbd7ac40ac66326e | |
parent | b8c045e0bbca22e2283aaeb7fc75cb7f19ab1303 (diff) |
mobile: use .text instead of .html for numbers
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | cao-common.js | 2 | ||||
-rw-r--r-- | cao-mobile.js | 4 |
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(); |