mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Check for visibility change when mounting instead of polling DOM
This commit is contained in:
@@ -178,7 +178,7 @@ EditorComponent = React.createClass
|
||||
@subscribe scrollbarStyle.changes, @refreshScrollbars
|
||||
|
||||
@domPollingIntervalId = setInterval(@pollDOM, @domPollingInterval)
|
||||
@pollDOM()
|
||||
@checkForVisibilityChange()
|
||||
|
||||
componentWillUnmount: ->
|
||||
@props.parentView.trigger 'editor:will-be-removed', [@props.parentView]
|
||||
|
||||
Reference in New Issue
Block a user