From 2d8d330df790f27a3aa93415556dddbc04e7f480 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 2 Dec 2014 11:56:03 -0700 Subject: [PATCH] Add Workspace::onDidDestroyPaneItem for symmetry with ::onDidDestroyPane --- src/workspace.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/workspace.coffee b/src/workspace.coffee index 9a71bc269..9ef31727f 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -296,6 +296,18 @@ class Workspace extends Model # Returns a {Disposable} on which `.dispose` can be called to unsubscribe. onWillDestroyPaneItem: (callback) -> @paneContainer.onWillDestroyPaneItem(callback) + # Extended: Invoke the given callback when a pane item is destroyed. + # + # * `callback` {Function} to be called when pane items are destroyed. + # * `event` {Object} with the following keys: + # * `item` The destroyed item. + # * `pane` {Pane} containing the destroyed item. + # * `index` {Number} indicating the index of the destroyed item in its + # pane. + # + # Returns a {Disposable} on which `.dispose` can be called to unsubscribe. + onDidDestroyPaneItem: (callback) -> @paneContainer.onDidDestroyPaneItem(callback) + # Extended: Invoke the given callback when a text editor is added to the # workspace. #