From 026bacabdbbf4c78cfde51be04fbfde5afe895f7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 11 Jan 2013 16:50:20 -0800 Subject: [PATCH] Use RootView.eachEditor from StatusBar package --- src/packages/status-bar/src/status-bar.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/packages/status-bar/src/status-bar.coffee b/src/packages/status-bar/src/status-bar.coffee index 0836898d3..2c93db40b 100644 --- a/src/packages/status-bar/src/status-bar.coffee +++ b/src/packages/status-bar/src/status-bar.coffee @@ -5,11 +5,8 @@ $ = require 'jquery' module.exports = class StatusBar extends View @activate: (rootView) -> - for editor in rootView.getEditors() - @appendToEditorPane(rootView, editor) if rootView.parents('html').length - - rootView.on 'editor:attached', (e, editor) => - @appendToEditorPane(rootView, editor) + rootView.eachEditor (editor) => + @appendToEditorPane(rootView, editor) if editor.attached @appendToEditorPane: (rootView, editor) -> if pane = editor.pane()