mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user