Made sure all dots are invisible by default.

This commit is contained in:
Scott Erickson 2014-10-02 10:50:05 -07:00
parent b1f4dc996d
commit e1e8945f9e

View file

@ -133,12 +133,13 @@ module.exports = class ThangTypeEditView extends RootView
@topLayer.addChild(@groundDot, @torsoDot, @mouthDot, @aboveHeadDot) @topLayer.addChild(@groundDot, @torsoDot, @mouthDot, @aboveHeadDot)
@updateGrid() @updateGrid()
_.defer @refreshAnimation _.defer @refreshAnimation
@toggleDots(false)
createjs.Ticker.setFPS(30) createjs.Ticker.setFPS(30)
createjs.Ticker.addEventListener('tick', @stage) createjs.Ticker.addEventListener('tick', @stage)
toggleDots: -> toggleDots: (newShowDots) ->
@showDots = not @showDots @showDots = if typeof(newShowDots) is 'boolean' then newShowDots else not @showDots
@updateDots() @updateDots()
updateDots: -> updateDots: ->