mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +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,7 +22,8 @@ define [
|
|||
@closeContextMenu()
|
||||
|
||||
@editor.on "changeSession", (e) =>
|
||||
@runSpellCheckSoon(200)
|
||||
if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != ""
|
||||
@runSpellCheckSoon(200)
|
||||
|
||||
e.oldSession?.getDocument().off "change", onChange
|
||||
e.session.getDocument().on "change", onChange
|
||||
|
|
Loading…
Reference in a new issue