mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
Merge pull request #353 from sharelatex/as-clean-up-ace-worker
Tear down Ace session when aceEditor is destroyed
This commit is contained in:
@@ -430,6 +430,8 @@ define [
|
||||
scope.$on '$destroy', () ->
|
||||
if scope.sharejsDoc?
|
||||
detachFromAce(scope.sharejsDoc)
|
||||
session = editor.getSession()
|
||||
session?.destroy()
|
||||
|
||||
scope.$emit "#{scope.name}:inited", editor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user