mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Made sure all dots are invisible by default.
This commit is contained in:
parent
b1f4dc996d
commit
e1e8945f9e
1 changed files with 4 additions and 3 deletions
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue