Check for visibility change when mounting instead of polling DOM

This commit is contained in:
Nathan Sobo
2014-08-22 11:35:51 -06:00
parent a71a524ec7
commit 72354ebf32

View File

@@ -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]