mirror of
https://github.com/atom/atom.git
synced 2026-02-06 04:34:55 -05:00
Don't forceUpdate in setImmediate callback if editor is unmounted
This was throwing errors in the EditorComponent spec. /cc @benogle, just so you're aware
This commit is contained in:
@@ -533,7 +533,7 @@ EditorComponent = React.createClass
|
||||
|
||||
onDecorationChanged: ->
|
||||
@decorationChangedImmediate ?= setImmediate =>
|
||||
@requestUpdate()
|
||||
@requestUpdate() if @isMounted()
|
||||
@decorationChangedImmediate = null
|
||||
|
||||
selectToMousePositionUntilMouseUp: (event) ->
|
||||
|
||||
Reference in New Issue
Block a user