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