mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Fix exception when pane items with no view are removed from the pane
This commit is contained in:
committed by
probablycorey
parent
2e2ff3a1d0
commit
7aba839dac
@@ -124,7 +124,7 @@ class Pane extends View
|
||||
viewClass = item.getViewClass()
|
||||
otherItemsForView = @items.filter (i) -> i.getViewClass?() is viewClass
|
||||
unless otherItemsForView.length
|
||||
@viewsByClassName[viewClass.name].remove()
|
||||
@viewsByClassName[viewClass.name]?.remove()
|
||||
delete @viewsByClassName[viewClass.name]
|
||||
|
||||
viewForItem: (item) ->
|
||||
|
||||
Reference in New Issue
Block a user