mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
Deprecate pane:removed event
This commit is contained in:
@@ -167,6 +167,17 @@ class WorkspaceView extends View
|
||||
@command 'core:save', => @saveActivePaneItem()
|
||||
@command 'core:save-as', => @saveActivePaneItemAs()
|
||||
|
||||
@setupViewEventDeprecations()
|
||||
|
||||
setupViewEventDeprecations: ->
|
||||
originalOn = @on
|
||||
|
||||
@on = (eventName) =>
|
||||
switch eventName
|
||||
when 'pane:removed'
|
||||
deprecate("Use Pane::onDidDestroy instead")
|
||||
originalOn.apply(this, arguments)
|
||||
|
||||
###
|
||||
Section: Accessing the Workspace Model
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user