Fixed an infinite loop bug in CoordinateGrid.

This commit is contained in:
Scott Erickson 2014-08-27 09:49:37 -07:00
parent 607a2a133f
commit ac2c39a266

View file

@ -24,8 +24,8 @@ module.exports = class CoordinateGrid extends CocoClass
toString: -> '<CoordinateGrid>'
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