Deprecate pane:removed event

This commit is contained in:
Kevin Sawicki
2014-09-17 15:54:28 -07:00
parent 31dd9bed6a
commit 4b4dc7224e

View File

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