mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Move saveAll and specs to PaneContainer
And simplify the specs… we don't *really* need to save. We can just ensure that save is called on everything.
This commit is contained in:
committed by
probablycorey
parent
e4bf73b41c
commit
7ebce683c6
@@ -36,6 +36,9 @@ class PaneContainer extends View
|
||||
getRoot: ->
|
||||
@children().first().view()
|
||||
|
||||
saveAll: ->
|
||||
pane.saveItems() for pane in @getPanes()
|
||||
|
||||
getPanes: ->
|
||||
@find('.pane').views()
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ class RootView extends View
|
||||
super
|
||||
|
||||
saveAll: ->
|
||||
pane.saveItems() for pane in @getPanes()
|
||||
@panes.saveAll()
|
||||
|
||||
eachPane: (callback) ->
|
||||
@panes.eachPane(callback)
|
||||
|
||||
Reference in New Issue
Block a user