Skip to content

Commit

Permalink
Add some missing const declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored and rht committed Dec 7, 2022
1 parent e92e884 commit 336ae59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesa/visualization/templates/js/GridDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ const GridVisualization = function (
this.drawGridLines = function () {
context.beginPath();
context.strokeStyle = "#eee";
maxX = cellWidth * gridWidth;
maxY = cellHeight * gridHeight;
const maxX = cellWidth * gridWidth;
const maxY = cellHeight * gridHeight;

// Draw horizontal grid lines:
for (let y = 0; y <= maxY; y += cellHeight) {
Expand Down

0 comments on commit 336ae59

Please sign in to comment.