Skip to content

Commit

Permalink
fix some jshint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jan 6, 2015
1 parent 958c38d commit cec2e85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions www/js/catan/js/catan.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ Catan = (function () {
Catan.generateMap = function (canvas, tileTrioScoreLimit) {
tileTrioScoreLimit = tileTrioScoreLimit || 12;

var terrains;
var res;
var map;
var terrains, res, map;

do {
map = new Catan.Map(7, 7, new Catan.Position(3, 3));
Expand Down
2 changes: 1 addition & 1 deletion www/js/catan/js/hexagon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function(Catan){
(function(Catan) {
"use strict";

// 2 3 4 5 6 7 8 9 10 11 12
Expand Down
2 changes: 1 addition & 1 deletion www/js/catan/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
// draw coordinates
ctx.fillStyle = "rgb(0, 0, 0)";
ctx.font = "8pt Arial";
ctx.fillText("[" + x + "," + y + "]", cx - width / 4 + 1, cy - 5);
ctx.fillText("[" + hexagon.position.column + "," + hexagon.position.line + "]", cx - width / 4 + 1, cy - 5);
if (hexagon.number !== undefined) {
ctx.font = "12pt Arial";
ctx.fillText(hexagon.number + "|" + Catan.Tools.tdsc(hexagon.number), cx - width / 4, cy + 10);
Expand Down

0 comments on commit cec2e85

Please sign in to comment.