mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Use underlayer property on editor
Removes unneeded call to find
This commit is contained in:
@@ -6,11 +6,7 @@ module.exports =
|
||||
class WrapGuideView extends View
|
||||
@activate: ->
|
||||
rootView.eachEditor (editor) =>
|
||||
@appendToEditorPane(rootView, editor) if editor.attached
|
||||
|
||||
@appendToEditorPane: (rootView, editor) ->
|
||||
if underlayer = editor.find('.underlayer')
|
||||
underlayer.append(new WrapGuideView(editor))
|
||||
editor.underlayer.append(new WrapGuideView(editor)) if editor.attached
|
||||
|
||||
@content: ->
|
||||
@div class: 'wrap-guide'
|
||||
|
||||
Reference in New Issue
Block a user