Emit pane:before-item-destroyed event

This commit is contained in:
probablycorey
2013-10-28 15:40:28 -07:00
parent a828f389f4
commit b1f5d1e276

View File

@@ -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)