Fix problem with Workspace::eachEditor

This commit is contained in:
probablycorey
2014-04-04 08:57:22 -07:00
parent 2f5735e264
commit 3aab0b7f51

View File

@@ -61,7 +61,7 @@ class Workspace extends Model
# unregister the callback.
eachEditor: (callback) ->
callback(editor) for editor in @getEditors()
@on 'editor-created', (editor) -> callback(editor)
@subscribe atom.project, 'editor-created', (editor) -> callback(editor)
# Public: Get all current editors in the workspace.
#