mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Make addEditor and removeEditor private methods on project
This commit is contained in:
@@ -128,13 +128,12 @@ class Project extends Model
|
||||
filePath = @resolve(filePath)
|
||||
@buildEditorForBuffer(@bufferForPathSync(filePath), options)
|
||||
|
||||
|
||||
# Public: Add the given {Editor}.
|
||||
# Add the given {Editor}.
|
||||
addEditor: (editor) ->
|
||||
@editors.push editor
|
||||
@emit 'editor-created', editor
|
||||
|
||||
# Public: Return and removes the given {Editor}.
|
||||
# Return and removes the given {Editor}.
|
||||
removeEditor: (editor) ->
|
||||
_.remove(@editors, editor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user