mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Move Pane::activeItem to PaneModel
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
|
||||
module.exports =
|
||||
class PaneModel extends Model
|
||||
activeItem: null
|
||||
|
||||
constructor: ({@items}) ->
|
||||
|
||||
@@ -25,9 +25,7 @@ class Pane extends View
|
||||
@div class: 'pane', tabindex: -1, =>
|
||||
@div class: 'item-views', outlet: 'itemViews'
|
||||
|
||||
@delegatesProperty 'items', toProperty: 'model'
|
||||
|
||||
activeItem: null
|
||||
@delegatesProperties 'items', 'activeItem', toProperty: 'model'
|
||||
|
||||
# Private:
|
||||
initialize: (args...) ->
|
||||
|
||||
Reference in New Issue
Block a user