mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:43:40 +00:00
avoid unnecessary spell checks on session change
This commit is contained in:
parent
8fc41e9e05
commit
92836f49fc
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ define [
|
|||
@closeContextMenu()
|
||||
|
||||
@editor.on "changeSession", (e) =>
|
||||
if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != ""
|
||||
@runSpellCheckSoon(200)
|
||||
|
||||
e.oldSession?.getDocument().off "change", onChange
|
||||
|
|
Loading…
Reference in a new issue