This commit is contained in:
Corey Johnson
2011-11-02 10:27:25 -07:00
parent 9e21d8da04
commit c67917efa3
14 changed files with 83 additions and 76 deletions

View File

@@ -30,10 +30,16 @@ class Pane
else
throw "I DON'T KNOW HOW TO DEAL WITH #{@position}"
show: ->
@add this
@showing = true
hide: ->
@html.parent().detach()
@showing = false
toggle: ->
if @showing
@html.parent().detach()
@hide()
else
@add this
@showing = not @showing
@show()