🐛 Fix race condition as well

This commit is contained in:
Antonio Scandurra
2015-06-17 13:48:31 +02:00
parent b0d93accf7
commit b04b0a8dc4
2 changed files with 10 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ class TextEditorComponent
@updateRequested = true
atom.views.updateDocument =>
@updateRequested = false
@updateSync() if @editor.isAlive()
@updateSync() if @canUpdate()
atom.views.readDocument(@readAfterUpdateSync)
canUpdate: ->