mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 04:50:52 +00:00
TODO for cleaning up sharejs callbacks
This commit is contained in:
parent
598837e17c
commit
2be37795bd
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ window.sharejs.extendDoc 'attach_ace', (editor, keepEditorContents, maxDocLength
|
|||
check()
|
||||
|
||||
doc.detach_ace = ->
|
||||
# TODO: can we remove the insert and delete event callbacks?
|
||||
editorDoc.removeListener 'change', editorListener
|
||||
delete doc.detach_ace
|
||||
|
||||
|
|
Loading…
Reference in a new issue