mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix window specs
This commit is contained in:
@@ -196,7 +196,8 @@ class Pane extends View
|
||||
|
||||
handleItemEvents: (item) ->
|
||||
if _.isFunction(item.on)
|
||||
@subscribe item, 'destroyed', => @destroyItem(item)
|
||||
@subscribe item, 'destroyed', =>
|
||||
@destroyItem(item) if @state.isAlive()
|
||||
|
||||
# Public: Remove the currently active item.
|
||||
destroyActiveItem: =>
|
||||
|
||||
Reference in New Issue
Block a user