mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Omit destroyed pane items
This is an interim solution which enables atom/image-view#4 to correctly deserialize when the path has been deleted both on atom master and in atom/atom#1326.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user