From 36aa3834d396400a6452b50f47f4f40e242dece5 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 11 Sep 2014 10:38:36 -0600 Subject: [PATCH] Only call ::checkForVisibilityChange on editor attachment, not ::pollDOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m pretty sure ::pollDOM is subsumed by ::checkForVisibilityChange because there’s no reason the editor would be considered visible prior to being attached. --- src/editor-view.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/editor-view.coffee b/src/editor-view.coffee index 47c6ced78..dc0e42364 100644 --- a/src/editor-view.coffee +++ b/src/editor-view.coffee @@ -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