Resolve timing issue when triggering selection-related logic.

This commit is contained in:
Paulo Reis 2017-06-07 14:21:05 +01:00
parent 53b18e041f
commit 240d6d6f6b

View file

@ -289,8 +289,8 @@ define [
session.$fromReject = false
else
throw new Error("unknown change: #{JSON.stringify(change)}")
@updateFocus()
setTimeout () => @updateFocus()
removeCommentId: (comment_id) ->
@rangesTracker.removeCommentId(comment_id)
@updateAnnotations()