Only call ::checkForVisibilityChange on editor attachment, not ::pollDOM

I’m pretty sure ::pollDOM is subsumed by ::checkForVisibilityChange
because there’s no reason the editor would be considered visible prior
to being attached.
This commit is contained in:
Nathan Sobo
2014-09-11 10:38:36 -06:00
parent 50a751b8e6
commit 36aa3834d3

View File

@@ -143,10 +143,6 @@ class EditorView extends View
return unless onDom
return if @attached
@attached = true
@component.pollDOM()
# Ensure that editor measurements like lineHeight are taken here, even if pollDOM() was a no-op
# because an update was requested.
@component.checkForVisibilityChange()
@focus() if @focusOnAttach