mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Don't set uri when pane item doesn't serialize itself
This commit is contained in:
@@ -77,9 +77,9 @@ class PaneContainer extends View
|
||||
newPane.focus()
|
||||
|
||||
itemDestroyed: (item) ->
|
||||
state = item.serialize?()
|
||||
state.uri ?= item.getUri?()
|
||||
@destroyedItemStates.push(state) if state?
|
||||
if state = item.serialize?()
|
||||
state.uri ?= item.getUri?()
|
||||
@destroyedItemStates.push(state)
|
||||
|
||||
itemAdded: (item) ->
|
||||
itemUri = item.getUri?()
|
||||
|
||||
Reference in New Issue
Block a user