From ac2c39a266322c0396e8ea7733cb8155ab8a8f82 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Wed, 27 Aug 2014 09:49:37 -0700 Subject: [PATCH] Fixed an infinite loop bug in CoordinateGrid. --- app/lib/surface/CoordinateGrid.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/surface/CoordinateGrid.coffee b/app/lib/surface/CoordinateGrid.coffee index 1d796ada2..8712f3fc7 100644 --- a/app/lib/surface/CoordinateGrid.coffee +++ b/app/lib/surface/CoordinateGrid.coffee @@ -24,8 +24,8 @@ module.exports = class CoordinateGrid extends CocoClass toString: -> '' build: (worldSize) -> - worldWidth = worldSize[0] ? 80 - worldHeight = worldSize[1] ? 68 + worldWidth = worldSize[0] or 80 + worldHeight = worldSize[1] or 68 @gridContainer = new createjs.Container() @gridShape = new createjs.Shape() @gridContainer.addChild @gridShape