Use underlayer property on editor

Removes unneeded call to find
This commit is contained in:
Kevin Sawicki
2013-02-12 20:55:51 -08:00
parent a2b50c9cf7
commit e61d3bfb5b

View File

@@ -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'