Merge pull request #110 from sharelatex/bg-ace-exception-temporary-fix

temporarily avoid exception in ace event handler
This commit is contained in:
Brian Gough 2017-11-15 16:32:45 +00:00 committed by GitHub
commit f001c6745e

View file

@ -23,8 +23,8 @@ define [
@editor.on "changeSession", (e) => @editor.on "changeSession", (e) =>
@highlightedWordManager.reset() @highlightedWordManager.reset()
if @inProgressRequest? # if @inProgressRequest?
@inProgressRequest.abort() # @inProgressRequest.abort()
if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != "" if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != ""
@runSpellCheckSoon(200) @runSpellCheckSoon(200)