Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac16966

Browse files
committed
Merge pull request patorjk#6 from GregFrench/patch-2
Declared 'cTop' and 'cLeft' variables
2 parents 47ff574 + 3f88334 commit ac16966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)