Skip to content

Commit

Permalink
update for new pane.close() api
Browse files Browse the repository at this point in the history
fixes #353
  • Loading branch information
pfitzseb committed Aug 9, 2017
1 parent 1784776 commit 18698a6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/ui/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ function cons() { return require('../runtime').console.c }
function plots() { return require('../runtime').plots.pane }

export function standard() {
for (let pane of [workspace(), cons(), plots()]) pane.close()
resetLayout()
createLayout([
[null, {layout: workspace(), scale: 0.5}],
{layout: [cons(), plots()], scale: 0.5}
])
let ps = []
for (let pane of [workspace(), cons(), plots()]) ps.push(pane.close())
Promise.all(ps).then(() => {
resetLayout()
createLayout([
[null, {layout: workspace(), scale: 0.5}],
{layout: [cons(), plots()], scale: 0.5}
])
})
}

0 comments on commit 18698a6

Please sign in to comment.