mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't remove PaneViews when their model is destroyed
They will be removed by their parent PaneContainerView or PaneAxisView, and removing them in the previous way circumvented some of our focus preservation logic.
This commit is contained in:
@@ -44,8 +44,6 @@ class PaneView extends View
|
||||
@handleEvents()
|
||||
|
||||
handleEvents: ->
|
||||
@subscribe @model, 'destroyed', => @remove()
|
||||
|
||||
@subscribe @model.$activeItem, @onActiveItemChanged
|
||||
@subscribe @model, 'item-added', @onItemAdded
|
||||
@subscribe @model, 'item-removed', @onItemRemoved
|
||||
|
||||
Reference in New Issue
Block a user