mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Fix crash when deserializing a pane without a wrapped view
This commit is contained in:
@@ -6,14 +6,14 @@ module.exports =
|
||||
class Pane extends View
|
||||
@content: (wrappedView) ->
|
||||
@div class: 'pane', =>
|
||||
@subview 'wrappedView', wrappedView
|
||||
@subview 'wrappedView', wrappedView if wrappedView
|
||||
|
||||
@deserialize: ({wrappedView}, rootView) ->
|
||||
new Pane(rootView.deserializeView(wrappedView))
|
||||
|
||||
serialize: ->
|
||||
viewClass: "Pane"
|
||||
wrappedView: @wrappedView.serialize()
|
||||
wrappedView: @wrappedView?.serialize()
|
||||
|
||||
adjustDimensions: -> # do nothing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user