Move Project::eachEditor to Workspace::eachEditor

This commit is contained in:
probablycorey
2014-04-03 11:51:58 -07:00
parent 52d5e205c7
commit 56bea31b5e
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,8 @@ class Workspace extends Model
# Returns a subscription object with an `.off` method that you can call to
# unregister the callback.
eachEditor: (callback) ->
atom.project.eachEditor(callback)
callback(editor) for editor in @getEditors()
@on 'editor-created', (editor) -> callback(editor)
# Public: Get all current editors in the workspace.
#