mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Use RootView.eachEditor from StatusBar package
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user