mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Move Project::eachEditor to Workspace::eachEditor
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user