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)
@updateGrid()
_.defer @refreshAnimation
@toggleDots(false)
createjs.Ticker.setFPS(30)
createjs.Ticker.addEventListener('tick', @stage)
toggleDots: ->
@showDots = not @showDots
toggleDots: (newShowDots) ->
@showDots = if typeof(newShowDots) is 'boolean' then newShowDots else not @showDots
@updateDots()
updateDots: ->