mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
tabs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user