Add PaneContainer::onDidAddPaneItem and ::observePaneItems

This commit is contained in:
Nathan Sobo
2014-08-28 17:42:12 -06:00
parent 877fa40a49
commit a33706ddbc
3 changed files with 36 additions and 1 deletions

View File

@@ -51,6 +51,9 @@ class PaneAxis extends Model
getPanes: ->
flatten(@children.map (child) -> child.getPanes())
getItems: ->
flatten(@children.map (child) -> child.getItems())
onDidAddChild: (fn) ->
@emitter.on 'did-add-child', fn