Fallback to light DOM in TextEditorView::find if nothing found in shadow

This commit is contained in:
Nathan Sobo
2014-10-16 20:19:28 -06:00
parent bda1429293
commit c64a4b7ca9

View File

@@ -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.
#