mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
TODO for cleaning up sharejs callbacks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user