mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Fire event before a pane is destroyed.
This commit is contained in:
@@ -251,6 +251,16 @@ class Workspace extends Model
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
|
||||
onDidAddPane: (callback) -> @paneContainer.onDidAddPane(callback)
|
||||
|
||||
# Extended: Invoke the given callback before a pane is destroyed in the
|
||||
# workspace.
|
||||
#
|
||||
# * `callback` {Function} to be called before panes are destroyed.
|
||||
# * `event` {Object} with the following keys:
|
||||
# * `pane` The pane to be destroyed.
|
||||
#
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
|
||||
onWillDestroyPane: (callback) -> @paneContainer.onWillDestroyPane(callback)
|
||||
|
||||
# Extended: Invoke the given callback when a pane is destroyed in the
|
||||
# workspace.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user