mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Always use global rootView object
This removes the last few places where rootView was looked up via jQuery selector and instead just uses the rootView property available on the window.
This commit is contained in:
@@ -73,7 +73,7 @@ class AutocompleteView extends SelectList
|
||||
|
||||
@editor.abort()
|
||||
@editor.setSelectedBufferRange(@originalSelectionBufferRange)
|
||||
@editor.rootView()?.focus() if @miniEditor.isFocused
|
||||
rootView.focus() if @miniEditor.isFocused
|
||||
|
||||
attach: ->
|
||||
@editor.transact()
|
||||
|
||||
@@ -11,7 +11,7 @@ find: (editor) ->
|
||||
word = editor.getTextInRange(editor.getCursor().getCurrentWordBufferRange())
|
||||
return [] unless word.length > 0
|
||||
|
||||
tagsFile = @getTagsFile(editor.rootView().project)
|
||||
tagsFile = @getTagsFile(rootView.project)
|
||||
return [] unless tagsFile
|
||||
|
||||
$tags.find(tagsFile, word) or []
|
||||
|
||||
Reference in New Issue
Block a user