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:
Nathan Sobo
2014-01-14 20:09:14 -07:00
parent d8ddd52df8
commit dd0ae8a8ea

View File

@@ -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