mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Remove pane when its last item is removed
This commit is contained in:
committed by
probablycorey
parent
7d147dd2ce
commit
11a702a2a6
@@ -70,6 +70,7 @@ class Pane extends View
|
||||
_.remove(@items, item)
|
||||
item.destroy?()
|
||||
@cleanupItemView(item)
|
||||
@remove() unless @items.length
|
||||
|
||||
itemForPath: (path) ->
|
||||
_.detect @items, (item) -> item.getPath?() is path
|
||||
|
||||
Reference in New Issue
Block a user