From c64a4b7ca96c6cc3075daaee4e85eab02d626337 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 16 Oct 2014 20:19:28 -0600 Subject: [PATCH] Fallback to light DOM in TextEditorView::find if nothing found in shadow --- src/text-editor-view.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/text-editor-view.coffee b/src/text-editor-view.coffee index 7c2963517..1ca437b71 100644 --- a/src/text-editor-view.coffee +++ b/src/text-editor-view.coffee @@ -98,7 +98,11 @@ class TextEditorView extends View lines.length > 0 find: -> - @root.find.apply(@root, arguments) + shadowResult = @root.find.apply(@root, arguments) + if shadowResult.length > 0 + shadowResult + else + super # Public: Get the underlying editor model for this view. #