mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only do legacy emit when including deprecations
This commit is contained in:
@@ -112,7 +112,7 @@ class Workspace extends Model
|
||||
_.uniq(packageNames)
|
||||
|
||||
editorAdded: (editor) ->
|
||||
@emit 'editor-created', editor
|
||||
@emit 'editor-created', editor if includeDeprecations
|
||||
|
||||
installShellCommands: ->
|
||||
require('./command-installer').installShellCommandsInteractively()
|
||||
@@ -446,7 +446,7 @@ class Workspace extends Model
|
||||
if options.initialLine? or options.initialColumn?
|
||||
item.setCursorBufferPosition?([options.initialLine, options.initialColumn])
|
||||
index = pane.getActiveItemIndex()
|
||||
@emit "uri-opened"
|
||||
@emit "uri-opened" if includeDeprecations
|
||||
@emitter.emit 'did-open', {uri, pane, item, index}
|
||||
item
|
||||
|
||||
|
||||
Reference in New Issue
Block a user