mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Pane emits 'pane:item-added' events
This commit is contained in:
committed by
probablycorey
parent
a40d05f6ee
commit
dd120663b7
@@ -84,7 +84,9 @@ class Pane extends View
|
||||
|
||||
addItem: (item) ->
|
||||
return if _.include(@items, item)
|
||||
@items.splice(@getActiveItemIndex() + 1, 0, item)
|
||||
index = @getActiveItemIndex() + 1
|
||||
@items.splice(index, 0, item)
|
||||
@trigger 'pane:item-added', [item, index]
|
||||
item
|
||||
|
||||
removeActiveItem: =>
|
||||
|
||||
Reference in New Issue
Block a user