Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/customs/graphical_board.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/customs/graphical_board.js')
-rw-r--r--lib/customs/graphical_board.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/customs/graphical_board.js b/lib/customs/graphical_board.js
index 57df226..a6ca655 100644
--- a/lib/customs/graphical_board.js
+++ b/lib/customs/graphical_board.js
@@ -25,6 +25,7 @@ GraphicalBoard.prototype = {
getRankY: function(rank){
return this.pos[1] + (7-rank) * this.cellSize;
},
+ // Just call it once.
addToStage: function(){
for (var rank = 0; rank < 8; rank++){
for (var file = 0; file < 8; file++){