mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Use RootView.eachEditor in Tabs package
This commit is contained in:
@@ -5,11 +5,8 @@ Tab = require 'tabs/src/tab'
|
||||
module.exports =
|
||||
class Tabs extends View
|
||||
@activate: (rootView) ->
|
||||
for editor in rootView.getEditors()
|
||||
@prependToEditorPane(rootView, editor) if rootView.parents('html').length
|
||||
|
||||
rootView.on 'editor:attached', (e, editor) =>
|
||||
@prependToEditorPane(rootView, editor)
|
||||
rootView.eachEditor (editor) =>
|
||||
@prependToEditorPane(rootView, editor) if editor.attached
|
||||
|
||||
@prependToEditorPane: (rootView, editor) ->
|
||||
if pane = editor.pane()
|
||||
|
||||
Reference in New Issue
Block a user