mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Emit pane:before-item-destroyed event
This commit is contained in:
@@ -196,6 +196,7 @@ class Pane extends View
|
||||
|
||||
# Public: Remove the specified item.
|
||||
destroyItem: (item) ->
|
||||
@trigger 'pane:before-item-destroyed', [item]
|
||||
container = @getContainer()
|
||||
reallyDestroyItem = =>
|
||||
@removeItem(item)
|
||||
|
||||
Reference in New Issue
Block a user