mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Use RootView.eachEditor from Autocomplete package
This commit is contained in:
@@ -5,8 +5,8 @@ SelectList = require 'select-list'
|
||||
module.exports =
|
||||
class Autocomplete extends SelectList
|
||||
@activate: (rootView) ->
|
||||
new Autocomplete(editor) for editor in rootView.getEditors()
|
||||
rootView.on 'editor:attached', (e, editor) -> new Autocomplete(editor) unless editor.mini
|
||||
rootView.eachEditor (editor) ->
|
||||
new Autocomplete(editor) if editor.attached and not editor.mini
|
||||
|
||||
@viewClass: -> "autocomplete #{super}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user