mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-16 01:34:10 +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()
|
check()
|
||||||
|
|
||||||
doc.detach_ace = ->
|
doc.detach_ace = ->
|
||||||
|
# TODO: can we remove the insert and delete event callbacks?
|
||||||
editorDoc.removeListener 'change', editorListener
|
editorDoc.removeListener 'change', editorListener
|
||||||
delete doc.detach_ace
|
delete doc.detach_ace
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue