Make addEditor and removeEditor private methods on project

This commit is contained in:
probablycorey
2014-02-12 17:19:50 -08:00
parent 41761ffbcf
commit 410f573095

View File

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