TODO for cleaning up sharejs callbacks

This commit is contained in:
Alasdair Smith 2018-02-20 15:26:45 +00:00
parent 598837e17c
commit 2be37795bd

View file

@ -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