Skip to content

Commit 3f88334

Browse files
committed
Declared 'cTop' and 'cLeft' variables
Variables were previously undeclared.
1 parent 47ff574 commit 3f88334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎js/snake.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ SNAKE.Board = SNAKE.Board || (function() {
771771
if (!elmPlayingField) {createBoardElements();} // create playing field
772772

773773
// calculate width of our game container
774-
var cWidth, cHeight;
774+
var cWidth, cHeight, cTop, cLeft;
775775
if (config.fullScreen === true) {
776776
cTop = 0;
777777
cLeft = 0;

0 commit comments

Comments
 (0)