From 3aab0b7f510229561bf9d71c07f851428142cbb6 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Fri, 4 Apr 2014 08:57:22 -0700 Subject: [PATCH] Fix problem with Workspace::eachEditor --- src/workspace.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index 5058c24e6..126b8feea 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -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. #