mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
commit
f4e704573d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue