Skip to content

Commit e49ad75

Browse files
committed
fix pane function calling
1 parent 779c595 commit e49ad75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ui/layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function closePromises () {
3030
const panes = specifiedPanes()
3131

3232
const promises = panes.map(pane => {
33-
return pane().close()
33+
return pane.close()
3434
})
3535

3636
return promises
@@ -75,10 +75,10 @@ function openPanesHelper (panes) {
7575
}
7676

7777
const pane = panes.shift()
78-
pane().open().catch((err) => {
78+
pane.open().catch((err) => {
7979
// @FIXME: This is a temporal remedy for https://github.com/JunoLab/atom-julia-client/pull/561#issuecomment-500150318
8080
console.error(err)
81-
pane().open()
81+
pane.open()
8282
}).finally(() => {
8383
// Re-focus the previously focused pane (i.e. the bundled pane by `bundlePanes`) after each opening
8484
// This prevents opening multiple panes with the same splitting rule in a same location from

0 commit comments

Comments
 (0)