diff options
Diffstat (limited to 'public/js/game.js')
| -rw-r--r-- | public/js/game.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/game.js b/public/js/game.js index 0b90328..598e3c6 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -162,7 +162,8 @@ UI[ State.WINNING ] = new function(){ for (var i in data.scores) { scores.push( [data.scores[i], i] ); } - var topthree = scores.sort(function(){ a[0] - b[0] }).splice(0, 3); + var topthree = scores.sort(function(a,b){ a[0] - b[0] }).splice(0, 3); + console.log(data); for (var i in topthree) { var score = topthree[i][0] var nick = topthree[i][1] |
