mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
Add Pane.getNextPane
This commit is contained in:
@@ -72,6 +72,12 @@ class Pane extends View
|
||||
isActive: ->
|
||||
@hasClass('active')
|
||||
|
||||
getNextPane: ->
|
||||
panes = @getContainer()?.getPanes()
|
||||
return unless panes.length > 1
|
||||
nextIndex = (panes.indexOf(this) + 1) % panes.length
|
||||
panes[nextIndex]
|
||||
|
||||
getItems: ->
|
||||
new Array(@items...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user