Merge pull request #1334 from atom/ns-omit-destroyed-pane-items

Omit destroyed pane items
This commit is contained in:
Nathan Sobo 2013-12-18 08:40:20 -08:00
commit 9198f3b809

View File

@ -37,6 +37,7 @@ class Pane extends View
@items = _.compact @state.get('items').map (item) ->
item = atom.deserializers.deserialize(item)
item?.created?()
return if item?.state?.isDestroyed?()
item
else
@items = args