From 00a675237958704ceea56b7e47a509e873d92705 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 9 Jun 2015 01:28:17 +0100 Subject: mobile: use .text instead of .html for numbers Signed-off-by: Olivier Gayot --- cao-common.js | 2 +- 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(); -- cgit v1.2.3