Fix window specs

This commit is contained in:
probablycorey
2013-12-12 14:27:44 -08:00
parent 58bf19cc83
commit 90f3726c5c
2 changed files with 4 additions and 1 deletions

View File

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